API reference

MicrogestureScrollProvider Class

Extends MonoBehaviour
Enables scrolling of UI ScrollRects using microgestures combined with the interaction event pipeline for target detection.
Subscribes to InteractionBroadcaster.OnEventRaised for UI hover events to track which ScrollRect the user is targeting, then applies scroll velocity when swipe microgestures are detected. This decouples scrolling from any specific interactor type, it works with any pointer that feeds the interaction event pipeline.
Key behaviors:
  • Leverages ScrollRect's native physics for momentum and elastic bounce
  • Repeated swipes in the same direction accumulate velocity for faster scrolling
  • Stops momentum when the hovered target changes to a different ScrollRect or nothing

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.MicrogestureScrollProvider._started

Properties

EnableHorizontalScroll : bool
[Get][Set]
Signature
bool Oculus.Interaction.MicrogestureScrollProvider.EnableHorizontalScroll
EnableVerticalScroll : bool
[Get][Set]
Signature
bool Oculus.Interaction.MicrogestureScrollProvider.EnableVerticalScroll
InvertHorizontal : bool
[Get][Set]
Signature
bool Oculus.Interaction.MicrogestureScrollProvider.InvertHorizontal
InvertVertical : bool
[Get][Set]
Signature
bool Oculus.Interaction.MicrogestureScrollProvider.InvertVertical
ScrollStrength : float
[Get][Set]
Signature
float Oculus.Interaction.MicrogestureScrollProvider.ScrollStrength
StopMomentumOnTargetChange : bool
[Get][Set]
Signature
bool Oculus.Interaction.MicrogestureScrollProvider.StopMomentumOnTargetChange

Protected Methods

OnDisable ()
Signature
virtual void Oculus.Interaction.MicrogestureScrollProvider.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.MicrogestureScrollProvider.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.MicrogestureScrollProvider.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.MicrogestureScrollProvider.Update()
Returns
void

Methods

InjectAllMicrogestureScrollProvider ( microgestureSources )
Signature
void Oculus.Interaction.MicrogestureScrollProvider.InjectAllMicrogestureScrollProvider(OVRMicrogestureEventSource[] microgestureSources)
Parameters
microgestureSources: OVRMicrogestureEventSource []
Returns
void
InjectMicrogestureSources ( microgestureSources )
Signature
void Oculus.Interaction.MicrogestureScrollProvider.InjectMicrogestureSources(OVRMicrogestureEventSource[] microgestureSources)
Parameters
microgestureSources: OVRMicrogestureEventSource []
Returns
void