API reference

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.

Properties

WhenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.LocomotionEventsConnection.WhenLocomotionEventHandled

Events

WhenLocomotionPerformed : Action< LocomotionEvent >
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 ( broadcasters , handler )
Signature
void Oculus.Interaction.Locomotion.LocomotionEventsConnection.InjectAllLocomotionBroadcastersHandlerConnection(IEnumerable< ILocomotionEventBroadcaster > broadcasters, ILocomotionEventHandler handler)
Parameters
broadcasters: IEnumerable< ILocomotionEventBroadcaster >
Returns
void
InjectAllLocomotionBroadcastersHandlerConnection ( handler )
Signature
void Oculus.Interaction.Locomotion.LocomotionEventsConnection.InjectAllLocomotionBroadcastersHandlerConnection(ILocomotionEventHandler handler)
Parameters
Returns
void
InjectHandler ( handler )
Signature
void Oculus.Interaction.Locomotion.LocomotionEventsConnection.InjectHandler(ILocomotionEventHandler handler)
Parameters
Returns
void
InjectOptionalBroadcasters ( broadcasters )
Signature
void Oculus.Interaction.Locomotion.LocomotionEventsConnection.InjectOptionalBroadcasters(IEnumerable< ILocomotionEventBroadcaster > broadcasters)
Parameters
broadcasters: IEnumerable< ILocomotionEventBroadcaster >
Returns
void