Game Development Reference
In-Depth Information
Figure 8-6. Changing the sprite Mesh Type from Tight to Full Rect
Testing the Main Menu
The GUI classes created so far all make use of the [ExecuteInEditMode] directive, meaning they run
and operate in the background, even when the Unity Editor is not in Play mode. This feature allows
us to preview and see the effects of our GUI in real time; but this comes with important limitations.
Specifically, we'll need to use the Game tab (not the Scene tab) to preview our GUI, since this view
shows us the complete consolidation of scene cameras. So let's switch to the Game tab; the GUI
menu is then displayed in the viewport (see Figure 8-7 ).
 
Search WWH ::




Custom Search