RepeatButton
A button that executes an action repeatedly while it is pressed. For more information, refer to UXML element RepeatButton.
Read time 6 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: TextElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection
public class RepeatButton : TextElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection
Static Fields
Value | Description |
|---|---|
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| RepeatButton() | Constructor. |
| RepeatButton(System.Action,System.Int64,System.Int64) | Constructor. |
Methods
Method | Description |
|---|---|
| SetAction | Set the action that should be executed when the button is pressed. |