docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)