label
The label shown next to the field's input control.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Property
- Namespace: Unity.UIToolkit.Editor
- Assembly: UnityEditor
[UxmlAttribute]public string label { get; set; }
Remarks
When you don't set a label, it falls back to the display name of the bound SerializedProperty. Set a label to keep it stable regardless of the property name.