docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetValue

    GetValue(Object, Hints)

    Get the current value of the axis.

    Declaration
    float GetValue(Object context, IInputAxisOwner.AxisDescriptor.Hints hint)
    Parameters
    Type Name Description
    Object context

    The owner GameObject, can be used for logging diagnostics

    IInputAxisOwner.AxisDescriptor.Hints hint

    A hint for converting a Vector2 value to a float

    Returns
    Type Description
    float

    The axis value

    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)