Class SliderInt
A slider containing Integer discrete values.
Inheritance
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class SliderInt : BaseSlider<int>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<int>, IMixedValueSupport
Constructors
SliderInt()
Constructors for the SliderInt.
Declaration
public SliderInt()
SliderInt(Int32, Int32, SliderDirection, Single)
Constructors for the SliderInt.
Declaration
public SliderInt(int start, int end, SliderDirection direction = SliderDirection.Horizontal, float pageSize = null)
Parameters
Type | Name | Description |
---|---|---|
Int32 | start | This is the low value of the slider. |
Int32 | end | This is the high value of the slider. |
SliderDirection | direction | This is the slider direction, horizontal or vertical. |
Single | pageSize | This is the number of values to change when the slider is clicked. |
SliderInt(String, Int32, Int32, SliderDirection, Single)
Constructors for the SliderInt.
Declaration
public SliderInt(string label, int start = 0, int end = null, SliderDirection direction = SliderDirection.Horizontal, float pageSize = null)
Parameters
Type | Name | Description |
---|---|---|
String | label | |
Int32 | start | This is the low value of the slider. |
Int32 | end | This is the high value of the slider. |
SliderDirection | direction | This is the slider direction, horizontal or vertical. |
Single | pageSize | This is the number of values to change when the slider is clicked. |
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 |
Properties
pageSize
The value to add or remove to the SliderInt.value when it is clicked.
Declaration
public override float pageSize { get; set; }
Property Value
Type | Description |
---|---|
Single |
Overrides
Remarks
This is casted to int.