October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, developers can continue to use the existing Google VR SDK to update and distribute their apps to the Google Play Store, and make them available to users in the Daydream app.

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
Gets the deceleration rate override value.
InertiaOverride
bool
Gets a value indicating whether the interia is enabled via its override value.

Properties

DecelerationRateOverride

float DecelerationRateOverride

Gets the deceleration rate override value.

This value will override the deceleration rate 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 true.

Gets the default deceleration rate for the GvrPointerScrollInput.

InertiaOverride

bool InertiaOverride

Gets a value indicating whether the interia is enabled via its override value.

This value will 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 deceleration rate.

Gets whether the interia is enabled via its override value for the GvrPointerScrollInput.