Class CinemachineSplineRoll
Extension that can be added to a SplineContainer or a vcam that uses a SplineContainer, for example a vcam that has SplineDolly as Body component.
- When CinemachineSplineRoll is added to a gameObject that has SplineContainer, then the roll affects any vcam that reads that SplineContainer globally.
- When CinemachineSplineRoll is added to a vcam, then roll only affects that vcam locally.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.Cinemachine
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Spline Roll")]
[HelpURL("https://docs.unity.cn/Packages/com.unity.cinemachine@3.0/manual/CinemachineSplineRoll.html")]
public class CinemachineSplineRoll : MonoBehaviour
Fields
Roll
Roll (in degrees) around the forward direction for specific location on the track. When placed on a SplineContainer, this is going to be a global override that affects all vcams using the Spline. When placed on a vcam, this is going to be a local override that only affects that vcam.
Declaration
[Tooltip("Roll (in degrees) around the forward direction for specific location on the track.\n- When placed on a SplineContainer, this is going to be a global override that affects all vcams using the Spline.\n- When placed on a vcam, this is going to be a local override that only affects that vcam.")]
public SplineData<float> Roll
Field Value
| Type | Description |
|---|---|
| SplineData<Single> |