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
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Spline Roll")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/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<float> |