Class Stepper
Stepper UI element.
Inheritance
Stepper
Implements
INotifyValueChanged<int>
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Stepper : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, INotifyValueChanged<int>
Constructors
Stepper()
Default constructor.
Declaration
public Stepper()
Fields
buttonUssClassName
The Stepper general button styling class.
Declaration
public static readonly string buttonUssClassName
Field Value
Type | Description |
---|---|
string |
decButtonUssClassName
The Stepper decrement button styling class.
Declaration
public static readonly string decButtonUssClassName
Field Value
Type | Description |
---|---|
string |
decIconContainerUssClassName
The Stepper decrement icon container styling class.
Declaration
public static readonly string decIconContainerUssClassName
Field Value
Type | Description |
---|---|
string |
decIconUssClassName
The Stepper decrement icon styling class.
Declaration
public static readonly string decIconUssClassName
Field Value
Type | Description |
---|---|
string |
incButtonUssClassName
The Stepper increment button styling class.
Declaration
public static readonly string incButtonUssClassName
Field Value
Type | Description |
---|---|
string |
incIconContainerUssClassName
The Stepper increment icon container styling class.
Declaration
public static readonly string incIconContainerUssClassName
Field Value
Type | Description |
---|---|
string |
incIconUssClassName
The Stepper increment icon styling class.
Declaration
public static readonly string incIconUssClassName
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Stepper size styling class.
Declaration
public static readonly string sizeUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The Stepper main styling class.
Declaration
public static readonly string ussClassName
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
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. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>