Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

UxmlObjectAttribute

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Declares that a class can be instantiated from UXML and contain UXML attributes.

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.