Class Scroller
Implements
Inherited Members
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public class Scroller : VisualElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle
Constructors
| Improve this Doc View SourceScroller()
Declaration
public Scroller()
Scroller(Single, Single, Action<Single>, SliderDirection)
Declaration
public Scroller(float lowValue, float highValue, Action<float> valueChanged, SliderDirection direction = SliderDirection.Vertical)
Parameters
Type | Name | Description |
---|---|---|
Single | lowValue | |
Single | highValue | |
Action<Single> | valueChanged | |
SliderDirection | direction |
Properties
| Improve this Doc View Sourcedirection
Declaration
public SliderDirection direction { get; set; }
Property Value
Type | Description |
---|---|
SliderDirection |
highButton
Declaration
public ScrollerButton highButton { get; }
Property Value
Type | Description |
---|---|
ScrollerButton |
highValue
Declaration
public float highValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
lowButton
Declaration
public ScrollerButton lowButton { get; }
Property Value
Type | Description |
---|---|
ScrollerButton |
lowValue
Declaration
public float lowValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
slider
Declaration
public Slider slider { get; }
Property Value
Type | Description |
---|---|
Slider |
value
Declaration
public float value { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceAdjust(Single)
Declaration
public void Adjust(float factor)
Parameters
Type | Name | Description |
---|---|---|
Single | factor |
ScrollPageDown()
Declaration
public void ScrollPageDown()
ScrollPageDown(Single)
Declaration
public void ScrollPageDown(float factor)
Parameters
Type | Name | Description |
---|---|---|
Single | factor |
ScrollPageUp()
Declaration
public void ScrollPageUp()
ScrollPageUp(Single)
Declaration
public void ScrollPageUp(float factor)
Parameters
Type | Name | Description |
---|---|---|
Single | factor |
Events
| Improve this Doc View SourcevalueChanged
Declaration
public event Action<float> valueChanged
Event Type
Type | Description |
---|---|
Action<Single> |