Interface IInputContext
A set of input handlers, active while it is pushed to InputContextManager.
public interface IInputContext
Properties
Priority
The order of this context among the pushed ones. Higher priority contexts are offered each action first.
int Priority { get; }
Property Value
Methods
TryHandle(in InputActionState, Action<string>)
Offers an action. Returns true when the context handled it, which stops the action reaching
the contexts below it. Pass the action's id to consumeAction to consume
it.
bool TryHandle(in InputActionState state, Action<string> consumeAction)
Parameters
stateInputActionStateconsumeActionAction<string>