Interface IInputInteraction
Interface for interaction patterns that drive actions.
Namespace: UnityEngine.Experimental.Input
Syntax
public interface IInputInteraction
Remarks
By default, actions will start when a source control leaves its default state and will be completed when the control goes back to that state. Interactions can customize this and also implement logic that signals cancellations (which the default logic never triggers).
Interactions can be stateful and mutate state over time.
Methods
Process(ref InputInteractionContext)
Declaration
void Process(ref InputInteractionContext context)
Parameters
Type | Name | Description |
---|---|---|
InputInteractionContext | context |
Reset()
Declaration
void Reset()