Class CinemachineSplineCart
This is a very simple behaviour that constrains its transform to a Spline.
It can be used to animate any objects along a path, or as a tracking target for
Cinemachine Cameras.
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
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/Helpers/Cinemachine Spline Cart")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachineSplineCart.html")]
public class CinemachineSplineCart : MonoBehaviour
Fields
Name | Description |
---|---|
AutomaticDolly | Controls how automatic dollying occurs |
PositionUnits | How to interpret the Spline Position |
Spline | The Spline container to which the camera will be constrained. |
SplinePosition | The cart's current position on the spline, in position units |
TrackingTarget | Used only by Automatic Dolly settings that require it |
UpdateMethod | When to move the cart, if Speed is non-zero |