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
InertiaOverride
bool

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

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

InertiaOverride

bool InertiaOverride