Game Development Reference
In-Depth Information
2.
In User Layer 8, type in Sprite .
3.
Select Camera GUI, and set its Culling Mask to Nothing, and then to Sprite.
Everything from Camera GUI disappears.
4.
Select Battery Life, Bunny Count, Battery_0, and Battery_1, and assign them
each to the new Sprite layer at the top of the Inspector (Figure 9-24 ).
Figure 9-24. Assigning the Sprite layer
5.
Enable the Camera GUI's GUILayer component to see the GUI Text
objects again.
Let's take a few minutes to see how sprites behave with different aspect ratios.
1.
With the Game View set to Free Aspect, try adjusting the size and aspect
ratio of the window in the editor (Figure 9-25 ).
Figure 9-25. Sprite location problems with different aspect ratios
Search WWH ::




Custom Search