Следовал гайду -
https://youtu.be/4xzj3imRd20 using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParallaxBehaviour : MonoBehaviour
{
[SerializeField] Transform followingTarget;
[SerializeField, Range(0f, 1f)] float parallaxStrenght = 0.1f;
[SerializeField] bool disableVerticalParallax;
Vector3 targetPreviousPosition;
void Start()
{
if (!followingTarget)
followingTarget = Camera.main.transform;
targetPreviousPosition = followingTarget.position;
}
void LateUpdate()
{
var delta:Vector3 = followingTarget.position - targetPreviousPosition;
if (disableVerticalParallax)
delta.y = 0;
targetPreviousPosition = followingTarget.position;
transform.position += delta * parallaxStrenght;
}
}