IGvrScrollSettings

Interface to implement to override the global scroll settings in GvrPointerScrollInput for an object.

Summary

Must be implmented by a component. It will override the scroll settings for the GameObject that the component is attached to.

Can use GvrScrollSettings To override scroll settings for any existing UI type, or a custom UI component can implement this directly to override the scroll settings for the UI component's use case.

Inheritance

Direct Known Subclasses:GvrScrollSettings

Properties

DecelerationRateOverride
float
Override the DecelerationRate property in GvrPointerScrollInput for this object.
InertiaOverride
bool
Override the Inertia property in GvrPointerScrollInput for this object.

Properties

DecelerationRateOverride

float DecelerationRateOverride

Override the DecelerationRate property in GvrPointerScrollInput for this object.

The deceleration rate is the speed reduction per second. A value of 0.5 halves the speed each second. The deceleration rate is only used when inertia is enabled.

InertiaOverride

bool InertiaOverride

Override the Inertia property in GvrPointerScrollInput for this object.

Inertia means that scroll events will continue for a while after the user stops touching the touchpad. It gradually slows down according to the decelerationRate.