Interface IInputAxisReader
Abstraction for reading the value of an input axis
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
public interface IInputAxisReader
Methods
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 |