Class Slider
Inheritance
Slider
Implements
Inherited Members
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public class Slider : BaseSlider<float>, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<float>
Constructors
| Improve this Doc View SourceSlider()
Declaration
public Slider()
Slider(Single, Single, Action<Single>, SliderDirection, Single)
Declaration
public Slider(float start, float end, Action<float> valueChanged, SliderDirection direction = SliderDirection.Horizontal, float pageSize = 0F)
Parameters
Type | Name | Description |
---|---|---|
Single | start | |
Single | end | |
Action<Single> | valueChanged | |
SliderDirection | direction | |
Single | pageSize |
Slider(Single, Single, SliderDirection, Single)
Declaration
public Slider(float start, float end, SliderDirection direction = SliderDirection.Horizontal, float pageSize = 0F)
Parameters
Type | Name | Description |
---|---|---|
Single | start | |
Single | end | |
SliderDirection | direction | |
Single | pageSize |
Properties
| Improve this Doc View SourcevalueChanged
Declaration
public Action<float> valueChanged { get; set; }
Property Value
Type | Description |
---|---|
Action<Single> |