Game Development Reference
In-Depth Information
Additionally, because all of the new
UI
controls are also components, you can add a
Text
control to any other GameObject on a
Canvas
, either from:
• The Menu:
Component
|
UI
|
Text
• The
Inspector
:
Add Component
|
UI
|
Text
In all cases, this will result in the default view of the
Text
control/component on
your
Canvas
in the
Scene
view as you can see here:
A new Text control added to a scene with the color set to white to make it more visible
The border around the text is just the selection box around the control.
Text
controls do not have a border, they are just text.
There's no need to add a
Canvas
if you don't have one already; all UI
controls will automatically add a parent
Canvas
and an
EventSystem
to your scene, if you don't have one already.