Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Warning
Deprecated. UxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.
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

InitInitialize a VisualElement instance with values from the UXML element attributes.

Inheritance