Game Development Reference
In-Depth Information
Figure 11-1. The new label text displayed in the upper left corner of the Game view
Rect
The Rect variable deserves a little more explanation. It represents a 2D rectangle where the (x, y)
coordinates represent where the upper left corner of the rectangle will be positioned according to the
screen coordinates. The screen coordinates are based on the height and width of the target platform
display and are independent of the (x, y, z) coordinates of the game world (Figure 11-2 ).
Figure 11-2. Rect variable properties defining the size and position of a 2D rectangle depicted in the Unity Scripting Reference
 
Search WWH ::




Custom Search