Label
Constructs a Label with no initial text.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
Label()
Constructs a Label with no initial text.
public Label()
Remarks
Use this constructor with no arguments to create an empty Label.
Label(string)
Constructs a Label displaying the specified text.
public Label(string text)
Parameters
The initial text to be displayed in the Label.
Remarks
Use the parameter to create a Label with the specified value as the initial text.
text