API reference

MicrogestureScrollSettings Class

Extends MonoBehaviour
Per-ScrollRect settings for microgesture scrolling.
Attach this component to a ScrollRect to override MicrogestureScrollProvider defaults or to opt out of microgesture scrolling entirely.
When MicrogestureScrollProvider resolves a ScrollRect from a UI hover event, it checks for this component. If present, the settings here take precedence over the provider's global defaults.
To disable microgesture scrolling on a specific ScrollRect, add this component and uncheck EnableMicrogestureScroll.

Fields

HasStrengthOverride : bool
Whether this component has a valid scroll strength override.
Signature
bool Oculus.Interaction.MicrogestureScrollSettings.HasStrengthOverride

Properties

EnableHorizontalScroll : bool
[Get][Set]
Whether horizontal scrolling is enabled (only applies when OverrideHorizontalScroll is true).
Signature
bool Oculus.Interaction.MicrogestureScrollSettings.EnableHorizontalScroll
EnableMicrogestureScroll : bool
[Get][Set]
Whether microgesture scrolling is enabled on this ScrollRect.
Signature
bool Oculus.Interaction.MicrogestureScrollSettings.EnableMicrogestureScroll
EnableVerticalScroll : bool
[Get][Set]
Whether vertical scrolling is enabled (only applies when OverrideVerticalScroll is true).
Signature
bool Oculus.Interaction.MicrogestureScrollSettings.EnableVerticalScroll
OverrideHorizontalScroll : bool
[Get][Set]
Whether the horizontal scroll setting is overridden on this ScrollRect.
Signature
bool Oculus.Interaction.MicrogestureScrollSettings.OverrideHorizontalScroll
OverrideVerticalScroll : bool
[Get][Set]
Whether the vertical scroll setting is overridden on this ScrollRect.
Signature
bool Oculus.Interaction.MicrogestureScrollSettings.OverrideVerticalScroll
ScrollStrengthOverride : float
[Get][Set]
Override scroll strength for this ScrollRect.
Returns -1 if no override is set (use global default).
Signature
float Oculus.Interaction.MicrogestureScrollSettings.ScrollStrengthOverride