Enum InputActionPhase | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Enum InputActionPhase

    Trigger phase of an InputAction.

    Namespace: UnityEngine.Experimental.Input
    Syntax
    public enum InputActionPhase
    Remarks

    Actions can be triggered in steps. For example, a 'slow tap' will put an action into Started phase when a button the action is bound to is pressed. At that point, however, the action still has to wait for the expiration of a timer in order to make it a 'slow tap'. If the button is release before the timer expires, the action will be Cancelled whereas if the button is held long enough, the action will be Performed.

    Fields

    Name Description
    Cancelled
    Disabled

    The action is not enabled.

    Performed
    Started

    An associated control has been actuated such that it may lead to the action being triggered.

    Waiting

    The action is enabled and waiting for input on its associated controls.

    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