InteractorStateChangeArgs
(
previousState
, newState
)
|
Constructor for InteractorStateChangeArgs.
In general, only IInteractor instances are expected to invoke this.
Signature
Oculus.Interaction.InteractorStateChangeArgs.InteractorStateChangeArgs(InteractorState previousState, InteractorState newState) Parameters |
NewState
: InteractorState
[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.
Signature
InteractorState Oculus.Interaction.InteractorStateChangeArgs.NewState |
PreviousState
: InteractorState
[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.
Signature
InteractorState Oculus.Interaction.InteractorStateChangeArgs.PreviousState |