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.

GvrScrollSettings

Used to override the global scroll settings in GvrPointerScrollInput for the GameObject that this script is attached to.

Summary

Inheritance

Inherits from: MonoBehaviour, IGvrScrollSettings

Public attributes

decelerationRateOverride = 0.05f
float
The deceleration rate is the speed reduction per second.
inertiaOverride = true
bool
Override the Inertia property in GvrPointerScrollInput for this object.

Properties

DecelerationRateOverride
float
Gets the deceleration rate override value.
InertiaOverride
bool
Gets a value indicating whether the overridden value for interia is enabled.

Public attributes

decelerationRateOverride

float decelerationRateOverride = 0.05f

The deceleration rate is the speed reduction per second.

A value of 0.5 halves the speed each second. The default is 0.05. The deceleration rate is only used when inertia is true.

inertiaOverride

bool inertiaOverride = true

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.

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 deceleration rate override value for the GvrPointerScrollInput.

InertiaOverride

bool InertiaOverride

Gets a value indicating whether the overridden value for interia is enabled.

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 decelerationRate.

Gets the overridden value for whether to use interia for the GvrPointerScrollInput.