This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

Scroller Constructor

Declaration

public Scroller();

Declaration

public Scroller(float lowValue, float highValue, Action<float> valueChanged, Experimental.UIElements.SliderDirection direction);

Parameters

lowValue The minimum value represented by lowValue.
highValue The maximum value represented by highValue.
valueChanged The event method that is called when the value changes.
direction The slider direction. See SliderDirection.

Description

Constructor for this element.