Class MinMaxSlider
A min/max slider containing a representation of a range.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class MinMaxSlider : BaseField<Vector2>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<Vector2>, IMixedValueSupport
Constructors
MinMaxSlider()
Constructor.
Declaration
public MinMaxSlider()
MinMaxSlider(Single, Single, Single, Single)
Constructor.
Declaration
public MinMaxSlider(float minValue, float maxValue, float minLimit, float maxLimit)
Parameters
Type | Name | Description |
---|---|---|
Single | minValue | The minimum value in the range to be represented. |
Single | maxValue | The maximum value in the range to be represented. |
Single | minLimit | The minimum value of the slider limit. |
Single | maxLimit | The maximum value of the slider limit. |
MinMaxSlider(String, Single, Single, Single, Single)
Constructor.
Declaration
public MinMaxSlider(string label, float minValue = null, float maxValue = null, float minLimit = null, float maxLimit = null)
Parameters
Type | Name | Description |
---|---|---|
String | label | |
Single | minValue | The minimum value in the range to be represented. |
Single | maxValue | The maximum value in the range to be represented. |
Single | minLimit | The minimum value of the slider limit. |
Single | maxLimit | The maximum value of the slider limit. |
Fields
draggerUssClassName
USS class name of dragger elements in elements of this type.
Declaration
public static readonly string draggerUssClassName
Field Value
Type | Description |
---|---|
String |
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 |
maxThumbUssClassName
USS class name of the maximum thumb elements in elements of this type.
Declaration
public static readonly string maxThumbUssClassName
Field Value
Type | Description |
---|---|
String |
minThumbUssClassName
USS class name of the minimum thumb elements in elements of this type.
Declaration
public static readonly string minThumbUssClassName
Field Value
Type | Description |
---|---|
String |
trackerUssClassName
USS class name of tracker elements in elements of this type.
Declaration
public static readonly string trackerUssClassName
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
highLimit
This is the high limit of the slider.
Declaration
public float highLimit { get; set; }
Property Value
Type | Description |
---|---|
Single |
lowLimit
This is the low limit of the slider.
Declaration
public float lowLimit { get; set; }
Property Value
Type | Description |
---|---|
Single |
maxValue
This is the high value of the range represented on the slider.
Declaration
public float maxValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
minValue
This is the low value of the range represented on the slider.
Declaration
public float minValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
range
Returns the range of the low/high limits of the slider.
Declaration
public float range { get; }
Property Value
Type | Description |
---|---|
Single |
value
This is the value of the slider. This is a
Declaration
public override Vector2 value { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
Methods
ExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt |
Overrides
SetValueWithoutNotify(Vector2)
Declaration
public override void SetValueWithoutNotify(Vector2 newValue)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | newValue |
Overrides
UpdateMixedValueContent()
Declaration
protected override void UpdateMixedValueContent()