About

The UIObject attribute can only be applied to fields. The type of the field must be GameObject. This tag is used in the same way as UIComponent but instead will give you the GameObject.

Example Usage

<text id="whatever"></text>
[UIObject("whatever")]
private GameObject textObj;

This example will initialize textObj with the text tag’s GameObject component.