Label
Constructs a Label with no initial text.
阅读时间1 分钟最后更新于 1 个月前
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