Game Development Reference
In-Depth Information
Rect Transform
Introduced in 4.3 with the new Sprite functionality, the
Rect Transform
component
provides a defining region for any 2D element within the Unity system. However,
like most things in 4.6, it has received significant updates allowing more control over
the area it manages as shown here:
It also sports a new button in the editor (called the
Rect Tool
) to edit and manage
Rect Transform
from the scene view, as shown in the following screenshot:
The Canvas
At the core of all
Unity UI
drawings, is the new
Canvas
control. It acts as the paint
board for your
Unity UI
controls (and even other canvases), once rendered the
canvas is drawn to the relative point in your scene.
Thanks to vast improvements this canvas can be drawn in basic 2D overlay mode
(same as the legacy GUI system), in 2D camera space (adding perspective), or
even directly in 3D world space like as any other traditional 3D object (such as a
rendertarget for UI) as shown here: