docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetInputAxisProvider

    SetInputAxisProvider(int, IInputAxisProvider)

    Set an input provider for this axis. If an input provider is set, the provider will be queried when user input is needed, and the Input Axis Name field will be ignored. If no provider is set, then the legacy Input system will be queried, using the Input Axis Name.

    Declaration
    public void SetInputAxisProvider(int axis, AxisState.IInputAxisProvider provider)
    Parameters
    Type Name Description
    int axis

    Which axis will be queried for input

    AxisState.IInputAxisProvider provider

    The input provider

    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)