Object#
-
class Object#
The base class of canvases, panels, controls, text, images, scroll views and toggle groups.
-
RectTransform rect_transform()#
The rect transform for the UI object.
-
LayoutElement layout_element()#
How much space the UI object asks a layout for.
Note
Only has an effect when the object is in a panel that has a layout. A canvas is not inside a layout and does not have one.
-
bool visible()#
-
void set_visible(bool value)#
Whether the UI object is visible.
Note
This is the object’s own setting, which is what it was last set to. An object is only drawn when everything it is inside is visible as well, so an interface can be built with its parts visible, inside a panel that is not, and shown all at once by making that panel visible.
-
void remove()#
Remove the UI object.
-
RectTransform rect_transform()#