Class CinemachineDollyCart
This is a deprecated component. Use CinemachineSplineCart instead.
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
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
[Obsolete("CinemachineDollyCart has been deprecated. Use CinemachineSplineCart instead.")]
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("")]
public class CinemachineDollyCart : MonoBehaviour
Fields
m_Path
The path to follow
Declaration
[Tooltip("The path to follow")]
public CinemachinePathBase m_Path
Field Value
Type | Description |
---|---|
CinemachinePathBase |
m_Position
The cart's current position on the path, in distance units
Declaration
[Tooltip("The position along the path at which the cart will be placed. This can be animated directly or, if the velocity is non-zero, will be updated automatically. The value is interpreted according to the Position Units setting.")]
[FormerlySerializedAs("m_CurrentDistance")]
public float m_Position
Field Value
Type | Description |
---|---|
float |
m_PositionUnits
How to interpret the Path Position
Declaration
[Tooltip("How to interpret the Path Position. If set to Path Units, values are as follows: 0 represents the first waypoint on the path, 1 is the second, and so on. Values in-between are points on the path in between the waypoints. If set to Distance, then Path Position represents distance along the path.")]
public CinemachinePathBase.PositionUnits m_PositionUnits
Field Value
Type | Description |
---|---|
CinemachinePathBase.PositionUnits |
m_Speed
Move the cart with this speed
Declaration
[Tooltip("Move the cart with this speed along the path. The value is interpreted according to the Position Units setting.")]
[FormerlySerializedAs("m_Velocity")]
public float m_Speed
Field Value
Type | Description |
---|---|
float |
m_UpdateMethod
When to move the cart, if Velocity is non-zero
Declaration
[Tooltip("When to move the cart, if Velocity is non-zero")]
public CinemachineDollyCart.UpdateMethod m_UpdateMethod
Field Value
Type | Description |
---|---|
CinemachineDollyCart.UpdateMethod |