Struct CinemachineStateDrivenCamera.Instruction
This represents a single instruction to the StateDrivenCamera. It associates an state from the state machine with a child Virtual Camera, and also holds activation tuning parameters.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CinemachineStateDrivenCamera.Instruction
Fields
ActivateAfter
How long to wait (in seconds) before activating the camera. This filters out very short state durations
Declaration
[Tooltip("How long to wait (in seconds) before activating the camera. This filters out very short state durations")]
[FormerlySerializedAs("m_ActivateAfter")]
public float ActivateAfter
Field Value
Type | Description |
---|---|
float |
Camera
The virtual camera to activate when the animation state becomes active
Declaration
[Tooltip("The virtual camera to activate when the animation state becomes active")]
[FormerlySerializedAs("m_VirtualCamera")]
public CinemachineVirtualCameraBase Camera
Field Value
Type | Description |
---|---|
CinemachineVirtualCameraBase |
FullHash
The full hash of the animation state
Declaration
[Tooltip("The full hash of the animation state")]
[FormerlySerializedAs("m_FullHash")]
public int FullHash
Field Value
Type | Description |
---|---|
int |
MinDuration
The minimum length of time (in seconds) to keep a camera active
Declaration
[Tooltip("The minimum length of time (in seconds) to keep a camera active")]
[FormerlySerializedAs("m_MinDuration")]
public float MinDuration
Field Value
Type | Description |
---|---|
float |