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 |