Class RangeSliderFloat
Range Slider UI element for floating point values.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class RangeSliderFloat : RangeSliderBase<Vector2, float>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<Vector2>, INotifyValueChanging<Vector2>, INotifyValueChanged<Vector2>
Constructors
| Name | Description |
|---|---|
| RangeSliderFloat() | Default constructor. |
Properties
| Name | Description |
|---|---|
| incrementFactor | The increment factor used when the slider is interacted with using the keyboard. |
| maxValue | The value of the right handle. |
| minValue | The value of the left handle. |
Methods
| Name | Description |
|---|---|
| Decrement(float) | Method to implement which returns the decrement of a given value. |
| GetClampedValue(float, float, float) | Get the clamped value. |
| GetMaxValue(Vector2) | Get the maximum value from the range value. |
| GetMinValue(Vector2) | Get the minimum value from the range value. |
| Increment(float) | Method to implement which returns the increment of a given value. |
| LerpUnclamped(float, float, float) | Lerp between two values. |
| MakeRangeValue(float, float) | Create a range value from the min and max values. |
| ParseStringToValue(string, out Vector2) | |
| ParseValueToString(Vector2) | Method to implement to resolve a TValueType value into a string value. You can use ToString() for floating point value types for example. You can also round the value if you want a specific number of decimals. |
| SliderLerpUnclamped(float, float, float) | Method to implement which returns a value based on the linear interpolation of a given interpolant between a specific range. Usually you can use directly LerpUnclamped(float, float, float) for floating point value types. |
| SliderNormalizeValue(float, float, float) | Method to implement which returns the normalized value of a given value in a specific range. Usually you can use directly an InverseLerp(float, float, float) for floating point value types. |