Documentation

Unity Engine

Download Unity

Unity Engine

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

[UxmlAttribute]public float mouseWheelScrollSize { get; set; }

Remarks

This property takes precedence over the
--unity-metrics-single_line-height
USS variable. If both the property and the variable are set, the property value is used.
The following example demonstrates how to use the
mouseWheelScrollSize
property to control the "speed" of a scroll when using the mouse wheel. Notice the difference in feel when selecting different values: