GetClassNames()
Retrieve the classes for this element.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public IEnumerable<UniqueStyleString> GetClassNames()
Returns
Type | Description |
|---|---|
| IEnumerable<UniqueStyleString> | A class list. |
Remarks
The order of the classes will always be the same between two elements that have the same classes. The returned classes are ordered by corresponding UniqueStyleString id. This implies that for a given element the order is not guaranteed to match between executions or after a domain reload, depending on the creation order of the UniqueStyleStrings involved.