Common use cases for labels are;
All icons should be assigned a label/name.
Common use of labels with icons are:
When displaying labels with the same content (e.g. duplicated Game Objects in Hierarchy, or assets with the same name) append the number inside of brackets, such as Cube (1), Cube (2).
Labels can be paired with tooltips to display useful information about the control, ensuring the user has proper information about its function. Use tooltip property to display tooltips.
Left-aligned
Text in the Editor is left-aligned in windows, dialogs and components including tabs, dropdowns, and menus.
Centre-aligned
The exception to this rule are:
Tree view list items, and labels that identify an action or a control use regular text weight:
Labels can be styled bold when used to group other items, or an active links.
When focused, labels are highlighted blue, like most other Editor controls in focused states.
Semantic colors are used in text to convey conventional meanings and convey the same meaning in all contexts.
See all label color variables ->
Adjustment based control elements that require fine input, or enable / disable toggles when used alone, can be interacted with their label. This gives users a wider area and finer control to interact with these elements:
UI Toolkit
Provides an Element displaying text.
IMGUI
Provides an Element displaying text.