csharp
public readonly record struct InputActionContextWhat a listener is handed when an action changes phase.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (5)
public InputAction ActionThe action.
public InputActionPhase PhaseWhich change this is.
public Vector2 ValueThe action's value at that moment.
public float MagnitudeHow far from rest it is.
public InputBinding? BindingWhich binding caused it, or .
Methods (2)
public InputActionContext(InputAction Action, InputActionPhase Phase, Vector2 Value, float Magnitude, InputBinding? Binding)What a listener is handed when an action changes phase.
public T ReadValue<T>() where T : structReads the value as the shape the caller expects.
Used by (2)
- InputActionVixen.Input
- InputActionTestsVixen.Input.Tests