API reference
API reference
Select your platform
No SDKs available
No versions available

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 UnityEditor.

Properties

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.
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.

Member Functions

Constructor for InteractorStateChangeArgs.
In general, only IInteractor instances are expected to invoke this.
Parameters
previousState
The IInteractor's prior InteractorState
newState
The IInteractor's new InteractorState
Did you find this page helpful?
Thumbs up icon
Thumbs down icon