docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum PressBehavior

    Determines how to trigger an action based on button presses.

    Namespace: UnityEngine.InputSystem.Interactions
    Assembly: Unity.InputSystem.dll
    Syntax
    public enum PressBehavior

    Fields

    Name Description
    PressAndRelease

    Perform the action when the button is pressed and when the button is released.

    PressOnly

    Perform the action when the button is pressed.

    ReleaseOnly

    Perform the action when the button is released.

    See Also
    behavior
    In This Article
    Back to top
    Copyright © 2024 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)