Class CinemachineTriggerAction | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CinemachineTriggerAction

    A multi-purpose script which causes an action to occur when a trigger collider is entered and exited.

    Inheritance
    System.Object
    CinemachineTriggerAction
    Namespace: Cinemachine
    Syntax
    [DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
    public class CinemachineTriggerAction : MonoBehaviour

    Fields

    m_LayerMask

    Only triggers generated by objects on these layers will be considered.

    Declaration
    public LayerMask m_LayerMask
    Field Value
    Type Description
    LayerMask

    m_OnObjectEnter

    What action to take when an eligible object enters the collider or trigger zone

    Declaration
    public CinemachineTriggerAction.ActionSettings m_OnObjectEnter
    Field Value
    Type Description
    CinemachineTriggerAction.ActionSettings

    m_OnObjectExit

    What action to take when an eligible object exits the collider or trigger zone

    Declaration
    public CinemachineTriggerAction.ActionSettings m_OnObjectExit
    Field Value
    Type Description
    CinemachineTriggerAction.ActionSettings

    m_Repeating

    Repeat the action for all subsequent trigger entries

    Declaration
    public bool m_Repeating
    Field Value
    Type Description
    System.Boolean

    m_SkipFirst

    Skip this many trigger entries before taking action

    Declaration
    public int m_SkipFirst
    Field Value
    Type Description
    System.Int32

    m_WithoutTag

    Triggers generated by objects with this tag will be ignored

    Declaration
    public string m_WithoutTag
    Field Value
    Type Description
    System.String

    m_WithTag

    If set, only triggers generated by objects with this tag will be considered

    Declaration
    public string m_WithTag
    Field Value
    Type Description
    System.String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023