Hierarchy

The Hierarchy (see Figure 1.15) is a textual list of all the GameObjects in the current Scene. As you add elements to your game, including any GameObjects added programmatically, this list will grow. The Hierarchy is also a great tool for parenting GameObjects. Parenting is a linked-style method of transforming GameObjects. An example would be a train and its caboose. When you move the train, the caboose follows. The train would be the “parent” of the caboose.

Image

Figure 1.15 The Hierarchy with a few GameObjects

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.