UxmlObjectAttribute
Declares that a class can be instantiated from UXML and contain UXML attributes.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: Attribute
- Implements: _Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = false)]public class UxmlObjectAttribute : Attribute, _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.