mouseWheelScrollSize
This property controls the scrolling speed only when using a mouse scroll wheel, based on the size of the page.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsControlsModule
[UxmlAttribute]public float mouseWheelScrollSize { get; set; }
Remarks
This property takes precedence over the USS variable. If both the property and the variable are set, the property value is used.
--unity-metrics-single_line-heightThe following example demonstrates how to use the property to control the "speed" of a scroll when using the mouse wheel. Notice the difference in feel when selecting different values:
mouseWheelScrollSize