UxmlTraits
Describes a VisualElement derived class for the parsing of UXML files and the generation of UXML schema definition.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseUxmlTraits
public abstract class UxmlTraits : BaseUxmlTraits
Remarks
UxmlTraits describes the UXML attributes and children elements of a class deriving from VisualElement. It is used by BindableElement.UxmlFactory to map UXML attributes to the C# class properties when reading UXML documents. It is also used to generate UXML schema definitions.
Methods
Method | Description |
|---|---|
| Init | Initialize a VisualElement instance with values from the UXML element attributes. |