Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


decorator

The decorator that draws the override indicator bar, binding affordances, and context menu for this field.
Read time 1 minuteLast updated 13 days ago

Definition

public UxmlAttributeFieldDecorator decorator { get; }

Remarks

Additional Resources: UxmlAttributeFieldDecorator
The following example reaches the decorator to add an action button next to the field.

Examples

var field = new UxmlAttributeField(property.FindPropertyRelative("text"));field.decorator.Add(new Button(() => field.label = "Text Content") { text = "Reset label" });container.Add(field);