Game Development Reference
In-Depth Information
Figure 1-24. Disabling Ambient Light from the Render Settings menu
Tip #7: Use Root GameObjects
Every Unity scene is ultimately composed from a hierarchy of GameObjects. GameObjects exist
within the scene in relation to each other, and this relationship (as defined by the hierarchy) is
critically important to every object's transformation ( position , rotation and scale ). Specifically, child
objects inherit the transformations of their parents. That is, the child adds its own transform to
its parent's. This feature is useful for making objects move and interact together believably. This
hierarchical relationship can be put to good use in many ways and not just at runtime; it can help at
design time, too.
If you create an empty game object in your scene by choosing GameObject Create Empty from
the Editor menu, and then make it the ultimate parent of all objects, you'll immediately have the
ability to transform your entire scene, should you ever need to reposition everything in one step while
building a level, or even at runtime (see Figure 1-25 ).
 
Search WWH ::




Custom Search