Class SliderInt
Slider UI element for integer values.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class SliderInt : SliderBase<int>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<int>, INotifyValueChanging<int>, INotifyValueChanged<int>
Constructors
| Name | Description |
|---|---|
| SliderInt() | Default constructor. |
Properties
| Name | Description |
|---|---|
| incrementFactor | The increment factor used when the slider is interacted with using the keyboard. |
Methods
| Name | Description |
|---|---|
| Decrement(int) | Method to implement which returns the decrement of a given value. |
| Increment(int) | Method to implement which returns the increment of a given value. |
| ParseStringToValue(string, out int) | |
| ParseValueToString(int) | 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(int, int, float) | |
| SliderNormalizeValue(int, int, int) |