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

LocomotionEventsConnection Class

Extends MonoBehaviour
This component serves as a nexus point between LocomotionEventBroadcasters and a LocomotionEventHandler.
Use it to group several LocomotionEventBroadcasters and re-route them to your player controller, or invoke it directly to get the event forwarded.

Events

WhenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Implementation of ILocomotionEventHandler.WhenLocomotionEventHandled; for details, please refer to the related documentation provided for that interface.
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.LocomotionEventsConnection.WhenLocomotionEventHandled
WhenLocomotionPerformed : Action< LocomotionEvent >
Implementation of ILocomotionEventBroadcaster.WhenLocomotionPerformed; for details, please refer to the related documentation provided for that interface.
Signature
Action<LocomotionEvent> Oculus.Interaction.Locomotion.LocomotionEventsConnection.WhenLocomotionPerformed

Protected Methods

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

Methods

HandleLocomotionEvent ( locomotionEvent )
Processes an incoming locomotion event and applies the appropriate transformations or state changes based on the event type.
Signature
void Oculus.Interaction.Locomotion.LocomotionEventsConnection.HandleLocomotionEvent(LocomotionEvent locomotionEvent)
Parameters
locomotionEvent: LocomotionEvent  The LocomotionEvent containing movement or teleportation data
Returns
void
InjectAllLocomotionBroadcastersHandlerConnection ( handlers )
Injects all required dependencies for a dynamically instantiated LocomotionEventsConnection.
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.LocomotionEventsConnection.InjectAllLocomotionBroadcastersHandlerConnection(List< ILocomotionEventHandler > handlers)
Parameters
handlers: List< ILocomotionEventHandler >
Returns
void
InjectHandler ( handler )
Sets the underlying ILocomotionEventHandler for a dynamically instantiated LocomotionEventsConnection.
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.LocomotionEventsConnection.InjectHandler(ILocomotionEventHandler handler)
Parameters
Returns
void
InjectHandlers ( handlers )
Sets the underlying ILocomotionEventHandler set for a dynamically instantiated LocomotionEventsConnection.
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.LocomotionEventsConnection.InjectHandlers(List< ILocomotionEventHandler > handlers)
Parameters
handlers: List< ILocomotionEventHandler >
Returns
void
InjectOptionalBroadcasters ( broadcasters )
Sets the underlying ILocomotionEventBroadcaster set for a dynamically instantiated LocomotionEventsConnection.
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.LocomotionEventsConnection.InjectOptionalBroadcasters(List< ILocomotionEventBroadcaster > broadcasters)
Parameters
broadcasters: List< ILocomotionEventBroadcaster >
Returns
void