docs.unity.cn
    Show / Hide Table of Contents

    Enum XRBaseControllerInteractor.InputTriggerType

    This defines the type of input that triggers an interaction.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public enum InputTriggerType : int

    Fields

    Name Description Value
    State

    The interaction will start when the button is pressed.

    0
    StateChange

    This interaction will start on the select button/key being activated or deactivated.

    1
    Toggle

    This interaction will start on the select button/key being activated and remain engaged until the second time the input is activated.

    2
    Sticky

    Start interaction on select enter, and wait until the second time the select key is depressed before exiting the interaction. This is useful for grabbing and throwing without having to hold a button down.

    3
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, October 27, 2021