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

InteractorUnityEventWrapper Class

Extends MonoBehaviour
Exposes Unity events that broadcast state changes from an IInteractorView (an Interactor).

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.InteractorUnityEventWrapper._started

Fields

WhenDisabled : UnityEvent
Raised when the IInteractorView transitions into the InteractorState.Disabled state.
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenDisabled
WhenEnabled : UnityEvent
Raised when the IInteractorView transitions out of the InteractorState.Disabled state.
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenEnabled
WhenHover : UnityEvent
Raised when the IInteractorView transitions into the InteractorState.Hover state.
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenHover
WhenPostprocessed : UnityEvent
Raised when the IInteractorView fires its IInteractorView.WhenPostprocessed event
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenPostprocessed
WhenPreprocessed : UnityEvent
Raised when the IInteractorView fires its IInteractorView.WhenPreprocessed event
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenPreprocessed
WhenProcessed : UnityEvent
Raised when the IInteractorView fires its IInteractorView.WhenProcessed event
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenProcessed
WhenSelect : UnityEvent
Raised when the IInteractorView transitions into the InteractorState.Select state.
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenSelect
WhenUnhover : UnityEvent
Raised when the IInteractorView transitions out of the InteractorState.Hover state.
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenUnhover
WhenUnselect : UnityEvent
Raised when the IInteractorView transitions out of the InteractorState.Select state.
Signature
UnityEvent Oculus.Interaction.InteractorUnityEventWrapper.WhenUnselect

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.InteractorUnityEventWrapper.Awake()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.InteractorUnityEventWrapper.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.InteractorUnityEventWrapper.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.InteractorUnityEventWrapper.Start()
Returns
void

Methods

InjectAllInteractorUnityEventWrapper ( interactorView )
Injects all required dependencies for a dynamically instantiated InteractorUnityEventWrapper.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.InteractorUnityEventWrapper.InjectAllInteractorUnityEventWrapper(IInteractorView interactorView)
Parameters
interactorView: IInteractorView
Returns
void
InjectInteractorView ( interactorView )
Sets the underlying IInteractorView for a dynamically instantiated InteractorUnityEventWrapper.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.InteractorUnityEventWrapper.InjectInteractorView(IInteractorView interactorView)
Parameters
interactorView: IInteractorView
Returns
void