Class Stepper
Stepper UI element.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class Stepper : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, INotifyValueChanged<int>
Constructors
Stepper()
Default constructor.
Declaration
public Stepper()
Fields
buttonUssClassName
The Stepper general button styling class.
Declaration
public const string buttonUssClassName = "appui-stepper__button"
Field Value
Type | Description |
---|---|
string |
decButtonUssClassName
The Stepper decrement button styling class.
Declaration
public const string decButtonUssClassName = "appui-stepper__decbutton"
Field Value
Type | Description |
---|---|
string |
decIconContainerUssClassName
The Stepper decrement icon container styling class.
Declaration
public const string decIconContainerUssClassName = "appui-stepper__iconcontainer"
Field Value
Type | Description |
---|---|
string |
decIconUssClassName
The Stepper decrement icon styling class.
Declaration
public const string decIconUssClassName = "appui-stepper__icon"
Field Value
Type | Description |
---|---|
string |
incButtonUssClassName
The Stepper increment button styling class.
Declaration
public const string incButtonUssClassName = "appui-stepper__incbutton"
Field Value
Type | Description |
---|---|
string |
incIconContainerUssClassName
The Stepper increment icon container styling class.
Declaration
public const string incIconContainerUssClassName = "appui-stepper__iconcontainer"
Field Value
Type | Description |
---|---|
string |
incIconUssClassName
The Stepper increment icon styling class.
Declaration
public const string incIconUssClassName = "appui-stepper__icon"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Stepper size styling class.
Declaration
public const string sizeUssClassName = "appui-stepper--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Stepper main styling class.
Declaration
public const string ussClassName = "appui-stepper"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container of the Stepper. Always null.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
size
The size of the Stepper.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
value
The value of the Stepper. 1 means increment, -1 means decrement.
It is not recommended to get or set this value directly. To track the changes of the value, use UnityEngine.UIElements.INotifyValueChangedExtensions.RegisterValueChangedCallback<T>(UnityEngine.UIElements.INotifyValueChanged<T>, UnityEngine.UIElements.EventCallback<UnityEngine.UIElements.ChangeEvent<T>>) instead.
Declaration
public int value { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
GetSizeUssClassName(Size)
Declaration
public static string GetSizeUssClassName(Size enumValue)
Parameters
Type | Name | Description |
---|---|---|
Size | enumValue |
Returns
Type | Description |
---|---|
string |
SetValueWithoutNotify(int)
Set the value of the Stepper without notifying the listeners.
Declaration
public void SetValueWithoutNotify(int newValue)
Parameters
Type | Name | Description |
---|---|---|
int | newValue | The new value. |