文档

Unity Engine

Unity Engine

UxmlTraits

Describes a VisualElement derived class for the parsing of UXML files and the generation of UXML schema definition.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
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