Game Development Reference
In-Depth Information
As the gizmos get larger, they start to fade out before they cover too much of the scene. As a
default, they are set as 3D gizmos. They are obviously 2D icons, but they are adjusted in size
depending on how close you are to them, giving you a better feel for where the actual gameObject
is in 3D space. They are also occluded by mesh objects, as can be seen with the golden can lights
on some of the walls. If you find the dynamic sizing distracting while working mostly in an overhead
view, you may prefer to switch them to 2D.
3.
Uncheck 3D Gizmos.
All of the gizmos within view are shown at a standard size. While this is obviously not practical for a
first-person vantage point, it is useful for overhead editing. 2D icons are not affected by distance.
4.
Switch the view to a top/iso view so you are looking down on the compound.
As you may remember, most of the lighting was baked into the textures, so most of the light gizmos
you see are no longer in use. Fortunately, you can opt to turn icons off and on by type.
5.
Open the Gizmos list again, and click the Light icon from the icon column.
All of the light gizmos are turned off in the Scene view.
6.
Now turn off the Audio Source icons.
An overhead search of the compound should now find the lone camera icon, but you will also see
several blue box outlines. Because the gizmos are associated with the components that dictate the
object's features and functionality, you can also assign icons to custom scripts, because scripts are
also components. In Angry Bots, several of the scripts have gizmos assigned to them.
7.
Open the Gizmos list again, and try unchecking the Rainbox gizmo check
box on the far right of the script name in the Scripts section.
The blue rectangle gizmos disappear from the scene.
In Unity, you have the option of assigning custom icons as well as generic gizmos to specialty scripts.
While it is beyond the scope of this topic to cover that functionality, it should at least take the mystery
out of some of the gizmos you come across in other people's scenes.
The last item on the Scene view bar is the now familiar search feature. While it may seem redundant
to have the search featureon both views, Unity allows you to fully customize which views are turned
on and where they are placed, so you could possibly find it very convenient if you are using two
monitors and have the Hierarchy view far removed from the Scene view.
Game View
Having dealt with the most complicated view, you can now take a look at the Game view.
1.
Click the Game tab to the right of the Scene tab.
For the most part, the Game view is about the runtime functionality of your scene, and its tools and
options reflect that as well (Figure 1-38 ).
 
Search WWH ::




Custom Search