Class CinemachineTriggerAction | Cinemachine | 2.4.0
docs.unity.cn
    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
    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
    Boolean

    m_SkipFirst

    Skip this many trigger entries before taking action

    Declaration
    public int m_SkipFirst
    Field Value
    Type Description
    Int32

    m_WithoutTag

    Triggers generated by objects with this tag will be ignored

    Declaration
    public string m_WithoutTag
    Field Value
    Type Description
    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
    String
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX