Hi , how do i change the damping value of the aim property of virtual camera from script?
You need to get the “Same as Follow Target” component from cinemachine, then you can access its parameters.
For example:
var vcam = GetComponent<CinemachineVirtualCamera>();
var sameAsFollowTarget = vcam.GetCinemachineComponent<CinemachineSameAsFollowTarget>();
sameAsFollowTarget.m_Damping = 1.5f;
3 Likes
thanks