docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Update

    Update(float, ref AxisBase)

    Update the axis

    Declaration
    public bool Update(float deltaTime, ref AxisBase axis)
    Parameters
    Type Name Description
    float deltaTime

    current deltaTime

    AxisBase axis

    The AxisState to update

    Returns
    Type Description
    bool

    True if the axis value changed due to user input, false otherwise

    Update(float, ref AxisState)

    Support for legacy AxisState struct: update the axis

    Declaration
    public bool Update(float deltaTime, ref AxisState axis)
    Parameters
    Type Name Description
    float deltaTime

    current deltaTime

    AxisState axis

    The AxisState to update

    Returns
    Type Description
    bool

    True if the axis value changed due to user input, false otherwise

    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)