This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates.
  • All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin. These new SDKs offer streamlined APIs, improved device compatibility, and built-in viewer profile QR code scanning.
  • The Daydream View VR headset is no longer available for purchase as of October 15, 2019. Existing apps on supported devices are unaffected for users who previously installed those applications. It is no longer possible to opt-in to Daydream distribution via Google Play.

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.