WhenActivated
: UnityEvent |
Signature
UnityEvent Oculus.Interaction.ActiveStateUnityEventWrapper.WhenActivated |
WhenDeactivated
: UnityEvent |
Signature
UnityEvent Oculus.Interaction.ActiveStateUnityEventWrapper.WhenDeactivated |
Awake
()
|
Signature
virtual void Oculus.Interaction.ActiveStateUnityEventWrapper.Awake() Returns void |
Start
()
|
Signature
virtual void Oculus.Interaction.ActiveStateUnityEventWrapper.Start() Returns void |
Update
()
|
This update method monitors the active state and triggers the appropriate Unity event based on the current state.
Signature
virtual void Oculus.Interaction.ActiveStateUnityEventWrapper.Update() Returns void |
InjectActiveState
(
activeState
)
|
Sets the active state for the wrapper.
This method is designed to support dependency injection for unit testing.
Signature
void Oculus.Interaction.ActiveStateUnityEventWrapper.InjectActiveState(IActiveState activeState) Parameters Returns void |
InjectAllActiveStateUnityEventWrapper
(
activeState
)
|
Injects an active state that this ActiveStateUnityEventWrapper will monitor.
This method is used to set up the wrapper with the active state whose changes will trigger the associated Unity events.
Signature
void Oculus.Interaction.ActiveStateUnityEventWrapper.InjectAllActiveStateUnityEventWrapper(IActiveState activeState) Parameters Returns void |
InjectOptionalEmitOnFirstUpdate
(
emitOnFirstUpdate
)
|
Optionally sets whether to emit events on the first update.
Signature
void Oculus.Interaction.ActiveStateUnityEventWrapper.InjectOptionalEmitOnFirstUpdate(bool emitOnFirstUpdate) Parameters emitOnFirstUpdate: bool
If true, events will be emitted on the first update.
Returns void |
InjectOptionalWhenActivated
(
whenActivated
)
| |
InjectOptionalWhenDeactivated
(
whenDeactivated
)
|