docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ReadIsPerformed

    ReadIsPerformed()

    Read whether the button is currently performed, which typically means whether the button is being pressed. This is typically true for multiple frames.

    Declaration
    bool ReadIsPerformed()
    Returns
    Type Description
    bool

    Returns true if the button is performed. Otherwise, returns false.

    Remarks

    For input actions, this depends directly on the interaction(s) driving the action (including the default interaction if no specific interaction has been added to the action or binding).

    In This Article
    Back to top
    Copyright © 2023 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)