기술 자료

Unity Engine

Unity Engine

UxmlTraits

Describes a VisualElement derived class for the parsing of UXML files and the generation of UXML schema definition.
읽는 시간 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