Class Slider
A slider containing floating point values.
Inheritance
Slider
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class Slider : BaseSlider<float>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<float>, IMixedValueSupport
Constructors
Slider()
Constructor.
Declaration
public Slider()
Slider(Single, Single, SliderDirection, Single)
Constructor.
Declaration
public Slider(float start, float end, SliderDirection direction = SliderDirection.Horizontal, float pageSize = null)
Parameters
Type | Name | Description |
---|---|---|
Single | start | |
Single | end | |
SliderDirection | direction | |
Single | pageSize |
Slider(String, Single, Single, SliderDirection, Single)
Constructor.
Declaration
public Slider(string label, float start = null, float end = null, SliderDirection direction = SliderDirection.Horizontal, float pageSize = null)
Parameters
Type | Name | Description |
---|---|---|
String | label | |
Single | start | |
Single | end | |
SliderDirection | direction | |
Single | pageSize |
Fields
inputUssClassName
USS class name of input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name of labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |