动态获取Cinemachine的内部组件
vCam.GetCinemachineComponent<T>()
动态修改Cinemachine的Transposer属性
var vCamComp = transfrom.GetComponent<CinemachineVirtualCamera>(); var transposerComp = vCamComp.GetCinemachineComponent<CinemachineTransposer>(); comp.m_FollowOffset = new Vector3(0, 0, 0); comp.m_XDamping = 0; comp.m_YDamping = 0; comp.m_ZDamping = 0; comp.m_BindingMode = CinemachineTransposer.BindingMode.WorldSpace;