InteractorStateChangeArgs Struct
IInteractorStateChangeArgs instances contain information relevant to the changing state of an IInteractorView.
This information is used internally by the Interaction SDK for a variety of tasks (for example, when observing and managing the state of multiple interactors within an InteractorGroup) and can be leveraged directly in custom code. However, it is typically easier to observe IInteractor state changes using an InteractorUnityEventWrapper, which will unpack this information into discrete events which can be accessed and manipulated in the Unity Editor.
InteractorState PreviousState[Get]
The InteractorState of the emitting IInteractor prior to this state change.
Note that state change events are emitted after the change has already taken place, and thus querying the state in a handler of such an event returns the new state, not the previous state.
InteractorState NewState[Get]
The InteractorState of the emitting IInteractor after this state change.
State change events are emitted after the change has already taken place, so querying the state in a handler of such an event will return this new state.
InteractorStateChangeArgs ( InteractorState previousState,
InteractorState newState )
Constructor for InteractorStateChangeArgs.
In general, only IInteractor instances are expected to invoke this.
ParameterspreviousStateThe IInteractor's prior InteractorState
newStateThe IInteractor's new InteractorState