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.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: solution.dll
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Spline Roll")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachineSplineRoll.html")]
public class CinemachineSplineRoll : MonoBehaviour
Fields
Name | Description |
---|---|
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. |