This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
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:
GvrScrollSettingsProperties
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eIGvrScrollSettings\u003c/code\u003e interface allows you to customize the scroll settings for individual objects in your VR application, overriding the global settings defined in \u003ccode\u003eGvrPointerScrollInput\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBy implementing this interface on a component attached to a GameObject, you can control how scrolling behaves specifically for that object.\u003c/p\u003e\n"],["\u003cp\u003eYou can either use the provided \u003ccode\u003eGvrScrollSettings\u003c/code\u003e class or create your own custom UI component to implement this interface and tailor the scroll functionality to your specific needs.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides two key properties: \u003ccode\u003eDecelerationRateOverride\u003c/code\u003e to adjust the rate at which scrolling slows down and \u003ccode\u003eInertiaOverride\u003c/code\u003e to enable or disable the continuation of scrolling after the user stops touching the touchpad.\u003c/p\u003e\n"]]],["The `IGvrScrollSettings` interface overrides global scroll settings for a specific object within `GvrPointerScrollInput`. Components implementing this interface can modify scroll behavior. It allows overriding `DecelerationRateOverride`, which controls the speed reduction of scrolling when inertia is enabled, and `InertiaOverride`, which toggles whether scrolling continues after user input stops. `GvrScrollSettings` uses this to change existing UI's, but custom UI can also directly implement.\n"],null,["IGvrScrollSettings\n\nInterface to implement to override the global scroll settings in [GvrPointerScrollInput](/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput) for an object.\n\nSummary\n\nMust be implmented by a component. It will override the scroll settings for the `GameObject` that the component is attached to.\n\nCan use [GvrScrollSettings](/vr/reference/unity/class/GvrScrollSettings#classGvrScrollSettings) 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.\n\nInheritanceDirect Known Subclasses:[GvrScrollSettings](/vr/reference/unity/class/GvrScrollSettings)\n\n| Properties ||\n|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| [DecelerationRateOverride](#interfaceIGvrScrollSettings_1a8cef06d043d5a8bc10ec0697134e1866) | `float` Gets the deceleration rate override value. |\n| [InertiaOverride](#interfaceIGvrScrollSettings_1a1a82c9279c10e4e73356c2157a9fdcd6) | `bool` Gets a value indicating whether the interia is enabled via its override value. |\n\nProperties \n\nDecelerationRateOverride \n\n```c#\nfloat DecelerationRateOverride\n``` \nGets the deceleration rate override value.\n\nThis value will override the deceleration rate in [GvrPointerScrollInput](/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput) for this object.\n\nThe 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`.\n\nGets the default deceleration rate for the [GvrPointerScrollInput](/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput). \n\nInertiaOverride \n\n```c#\nbool InertiaOverride\n``` \nGets a value indicating whether the interia is enabled via its override value.\n\nThis value will override the Inertia property in [GvrPointerScrollInput](/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput) for this object.\n\nInertia 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.\n\nGets whether the interia is enabled via its override value for the [GvrPointerScrollInput](/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput)."]]