Label
Provides an Element displaying text. For more information, refer to UXML element Label.
Read time 9 minutesLast updated 3 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: TextElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection
[UxmlElement(libraryPath = "Controls")][Icon("UIToolkit/Icons/Label.png")]public class Label : TextElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection
Static Fields
Value | Description |
|---|---|
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| Label() | Constructs a Label with no initial text. |
| Label(System.String) | Constructs a Label displaying the specified text. |