docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XRBaseInputInteractor.InputTriggerType

    This defines the type of input that triggers an interaction.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public enum XRBaseInputInteractor.InputTriggerType

    Fields

    Name Description
    State

    Unity will consider the input active while the button is pressed. A user can hold the button before the interaction is possible and still trigger the interaction when it is possible.

    StateChange

    Unity will consider the input active only on the frame the button is pressed, and if successful remain engaged until the input is released. A user must press the button while the interaction is possible to trigger the interaction. They will not trigger the interaction if they started pressing the button before the interaction was possible.

    Sticky

    The interaction starts on the frame the input is pressed and remains engaged until the second time the input is released.

    Toggle

    The interaction starts on the frame the input is pressed and remains engaged until the second time the input is pressed.

    See Also
    selectActionTrigger
    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)