ドキュメント

Unity Engine

Unity Engine

UxmlObjectAttribute

Declares that a class can be instantiated from UXML and contain UXML attributes. The UxmlSerializedData includes a generated UxmlSerializedData.CreateInstance() method that uses the default constructor. You can use the UxmlCreateInstanceMethodAttribute to replace the default behaviour and provide your own creation method.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前

Definition

[AttributeUsage(AttributeTargets.Class, Inherited = false)]public class UxmlObjectAttribute : Attribute

Remarks

A UXML object is a class that can be instantiated from UXML and contain UXML attributes. By utilizing the UxmlObjectReferenceAttribute attribute, you can use a UXML object to associate complex data with a field, surpassing the capabilities of a single UxmlAttributeAttribute.

Inheritance

Inherited Members