Method group is Obsolete

UxmlTraits

class in UnityEngine.UIElements

/

Inherits from:UIElements.BaseUxmlTraits

/

Implemented in:UnityEngine.UIElementsModule

Obsolete UxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.

Description

Describes a VisualElement derived class for the parsing of UXML files and the generation of UXML schema definition.

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.

Inherited Members


Did you find this page useful? Please give it a rating: