API reference

LocomotionHandlerUnityEventWrapper Class

Extends MonoBehaviour
Converts LocomotionEvent into UnityEvents for different locomotion types (translation, rotation, invalid target), allowing audio and visual feedback to be wired up in the Inspector.

Fields

WhenAbsoluteRotation : UnityEvent
Unity event invoked when the incoming LocomotionEvent has a LocomotionEvent.RotationType.Absolute rotation.
Signature
UnityEvent Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenAbsoluteRotation
WhenAbsoluteTranslation : UnityEvent
Unity event invoked when the incoming LocomotionEvent has a LocomotionEvent.TranslationType.Absolute or LocomotionEvent.TranslationType.AbsoluteEyeLevel translation.
Signature
UnityEvent Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenAbsoluteTranslation
WhenInvalidTarget : UnityEvent
Unity event invoked when the incoming LocomotionEvent has no translation or rotation and the resolved LocomotionActionsBroadcaster.LocomotionAction is LocomotionActionsBroadcaster.LocomotionAction.InvalidTarget.
Signature
UnityEvent Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenInvalidTarget
WhenRelativeRotationLeft : UnityEvent
Unity event invoked when the incoming LocomotionEvent has a LocomotionEvent.RotationType.Relative rotation turning to the left.
Signature
UnityEvent Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenRelativeRotationLeft
WhenRelativeRotationRight : UnityEvent
Unity event invoked when the incoming LocomotionEvent has a LocomotionEvent.RotationType.Relative rotation turning to the right.
Signature
UnityEvent Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenRelativeRotationRight
WhenRelativeTranslation : UnityEvent
Unity event invoked when the incoming LocomotionEvent has a LocomotionEvent.TranslationType.Relative translation.
Signature
UnityEvent Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenRelativeTranslation

Events

WhenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Raised after a LocomotionEvent has been successfully handled, providing the original event and the resulting Pose.
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.WhenLocomotionEventHandled

Methods

HandleLocomotionEvent ( locomotionEvent )
Processes an incoming LocomotionEvent and invokes the corresponding UnityEvents based on the event's translation and rotation types.
Signature
void Oculus.Interaction.Locomotion.LocomotionHandlerUnityEventWrapper.HandleLocomotionEvent(LocomotionEvent locomotionEvent)
Parameters
locomotionEvent: LocomotionEvent  The locomotion event to handle.
Returns
void
InjectOptionalContext ( context )
Sets the optional Context for a dynamically instantiated LocomotionHandlerUnityEventWrapper.
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.Locomotion.LocomotionHandlerUnityEventWrapper.InjectOptionalContext(Context context)
Parameters
context: Context  The Context used to resolve locomotion actions.
Returns
void