docs.unity3d.com
    Show / Hide Table of Contents

    Interface AxisState.IInputAxisProvider

    This is an interface to override default querying of Unity's legacy Input system. If a befaviour implementing this interface is attached to a Cinemachine virtual camera that requires input, that interface will be polled for input instead of the standard Input system.

    Namespace: Cinemachine
    Syntax
    public interface IInputAxisProvider

    Methods

    GetAxisValue(Int32)

    Get the value of the input axis

    Declaration
    float GetAxisValue(int axis)
    Parameters
    Type Name Description
    Int32 axis

    Which axis to query: 0, 1, or 2. These represent, respectively, the X, Y, and Z axes

    Returns
    Type Description
    Single

    The input value of the axis queried

    Back to top
    Terms of use
    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