Use the Hierarchy window to arrange the GameObjects in your scenes, group them into parent-child hierarchies, and control their visibility in the Scene view.
Unity uses the concept of parent-child hierarchies, or parenting, to group GameObjects. Group GameObjects under a parent to keep the Hierarchy window organized and to move, rotate, and scale the whole group of GameObjects together. To learn more, refer to Parent-child relationships in the Hierarchy window.
By default, the Hierarchy window lists GameObjects by order of creation, with the most recently created GameObjects at the bottom. You can reorder the GameObjects by dragging them up or down.
To make an existing GameObject the parent of another GameObject, drag the child onto the parent GameObject in the Hierarchy window.
To ungroup GameObjects, select the child GameObject and drag it to a different position in the Hierarchy window.
You can also paste a GameObject as a child of another GameObject.
Create a new GameObject in the Hierarchy window as the parent of existing GameObjects. An empty parent GameObject acts as a container for related GameObjects.
To create an empty parent GameObject:
Tip: Press Ctrl+Shift+G (macOS: Cmd+Shift+G) to create an empty parent GameObject for the selected GameObject.
You can cut or copy a GameObject and paste it as a child of another GameObject.
To paste a GameObject as a child:
Tip: You can also press Ctrl+Shift+V (macOS: Cmd+Shift+V) to paste a GameObject as a child with its local transform.
Child GameObjects that share the same parent are siblings.
To organize siblings under their parent, do one of the following:
Drag them in the Hierarchy window.
Right-click a GameObject in the Hierarchy window to open its context menu, then either:
These options aren’t available for GameObjects that don’t have a parent.
You can make any GameObject in the Hierarchy window the default parent of new GameObjects. When you create or drag a GameObject into the Scene view, it becomes a child of the default parent GameObject. The name of the default parent GameObject appears in bold in the Hierarchy window.
You can only set one default parent in each scene. If you set a GameObject as the default parent, and then you make a different GameObject in the same scene the default parent, only the second GameObject is the default parent.
If you have multiple scenesA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary in the Hierarchy window and you set a default parent for each scene, when you drag a GameObject into the Scene view, Unity makes the default parent GameObject in the active scene the parent of the new GameObject.
To set a default parent GameObject:
Tip: You can set a keyboard shortcut for the default parent setting in the Shortcuts Manager. Assign a keyboard shortcut to Hierarchy View > Set as Default Parent. The shortcut sets a selected GameObject as the default parent, or removes default parent status from an existing default parent.
When you remove default parent status from a GameObject, its name is no longer in bold. If you don’t set a new default parent, when you drag a GameObject into the Scene view, it appears at the top level in the Hierarchy window.
To remove default parent status from a GameObject:
In the Hierarchy window, you can expand or collapse the GameObjects nested under a parent GameObject to make large collections easier to navigate.
If you have a scene with many GameObjects, it can be difficult to find and select specific GameObjects in the Scene view. To clear the Scene view without affecting the visibility or behavior of GameObjects at runtime, you can toggle the visibility and pickability of GameObjects from the Hierarchy window:
Note: If you select multiple GameObjects, press H to hide and show them, and L to toggle their pickability.
For more information, refer to Scene visibility and Scene picking.