Bird
Raised Fist0
Unityframework~10 mins

Scene hierarchy window in Unity - Step-by-Step Execution

Choose your learning style10 modes available
Concept Flow - Scene hierarchy window
Open Unity Editor
↓
Locate Hierarchy Window
↓
View Scene Objects List
↓
Select Object
↓
Inspect or Modify Object Properties
↓
Add/Remove/Organize Objects
↓
Scene Updates Reflect in Hierarchy
This flow shows how you open the Unity Editor, find the Hierarchy window, and use it to view and manage all objects in your scene.
Execution Sample
Unity
1. Open Unity Editor
2. Look at the Hierarchy window
3. Click on a GameObject
4. See its children nested below
5. Drag to reorder or parent objects
6. Add new GameObjects via right-click
This sequence shows how you interact with the Scene Hierarchy window to organize and manage objects visually.
Execution Table
StepActionHierarchy Window StateSelected ObjectEffect
1Open Unity EditorHierarchy window visible with default scene objectsNoneReady to view scene objects
2Locate Hierarchy windowHierarchy window shows list of GameObjectsNoneScene objects listed in tree form
3Select 'Main Camera'Hierarchy shows 'Main Camera' highlightedMain CameraInspector shows Main Camera properties
4Expand 'Player' GameObjectHierarchy shows 'Player' with nested children visiblePlayerChildren objects visible under Player
5Drag 'Weapon' under 'Player'Hierarchy updates 'Weapon' as child of 'Player'WeaponScene hierarchy updated, parenting changed
6Right-click > Create EmptyNew GameObject 'GameObject' added at rootNew GameObjectNew empty object created in scene
7Delete 'GameObject''GameObject' removed from hierarchyNoneObject removed from scene
8Close Unity EditorHierarchy window closesNoneEditing session ends
💡 Unity Editor closed or scene closed, stopping hierarchy interaction
Variable Tracker
VariableStartAfter Step 3After Step 4After Step 5After Step 6After Step 7Final
Hierarchy Window StateVisible with default objectsMain Camera selectedPlayer expandedWeapon parented to PlayerNew GameObject addedNew GameObject deletedClosed
Selected ObjectNoneMain CameraPlayerWeaponNew GameObjectNoneNone
Key Moments - 3 Insights
Why do child objects appear nested under parent objects in the hierarchy?
Because parenting in Unity means the child object is visually nested under the parent in the hierarchy, showing their relationship clearly (see Step 4 and Step 5 in execution_table).
What happens when you drag one object onto another in the hierarchy?
Dragging an object onto another changes its parent, updating the scene hierarchy and affecting how objects move together (see Step 5 in execution_table).
Why does selecting an object in the hierarchy show its properties in the Inspector?
Selecting an object highlights it in the hierarchy and loads its details in the Inspector for editing, linking selection to property display (see Step 3 in execution_table).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at Step 4. What change happens in the hierarchy window?
AThe 'Main Camera' is deleted
BThe 'Player' GameObject is expanded to show its children
CA new GameObject is created
DThe 'Weapon' is parented to 'Player'
💡 Hint
Check the 'Hierarchy Window State' column at Step 4 in execution_table
According to variable_tracker, which object is selected after Step 5?
APlayer
BMain Camera
CWeapon
DNew GameObject
💡 Hint
Look at the 'Selected Object' row after Step 5 in variable_tracker
If you delete the 'New GameObject' at Step 7, what happens to the hierarchy window state?
A'New GameObject' is removed from the hierarchy
B'New GameObject' becomes a child of 'Player'
CThe hierarchy window closes
DNothing changes
💡 Hint
See Step 7 in execution_table under 'Effect'
Concept Snapshot
Scene Hierarchy Window in Unity:
- Shows all GameObjects in the current scene
- Objects are nested to show parent-child relationships
- Select objects to view/edit properties in Inspector
- Drag to reorder or change parenting
- Right-click to add or delete objects
- Changes here update the scene structure immediately
Full Transcript
The Scene Hierarchy Window in Unity is where you see all the objects in your scene listed in a tree form. You open Unity, find this window, and see all your GameObjects. Selecting an object highlights it and shows its properties in the Inspector. You can expand objects to see their children, drag objects to change their parent, and right-click to add or remove objects. Each action updates the scene immediately. This visual trace showed step-by-step how the hierarchy changes as you select, expand, drag, add, and delete objects, helping you understand how Unity organizes scene objects.

Practice

(1/5)
1. What does the Scene hierarchy window in Unity primarily display?
easy
A. The list of scripts attached to objects
B. All objects in the current scene arranged in a tree view
C. The textures used in the scene
D. The lighting settings of the scene

Solution

  1. Step 1: Understand the purpose of the Scene hierarchy window

    The Scene hierarchy window shows all objects currently in the scene, organized in a tree structure to show parent-child relationships.
  2. Step 2: Identify what is NOT shown in the hierarchy window

    Scripts, textures, and lighting settings are managed elsewhere, not in the hierarchy window.
  3. Final Answer:

    All objects in the current scene arranged in a tree view -> Option B
  4. Quick Check:

    Hierarchy = objects tree view [OK]
Hint: Hierarchy shows scene objects in a tree, not scripts or textures [OK]
Common Mistakes:
  • Confusing hierarchy with project or inspector windows
  • Thinking scripts or textures appear in hierarchy
  • Assuming lighting settings are shown here
2. Which of the following is the correct way to rename an object in the Scene hierarchy window?
easy
A. Drag the object to the Inspector window
B. Double-click the object in the Scene view
C. Right-click the object and select 'Rename' or press F2
D. Delete the object and create a new one with the desired name

Solution

  1. Step 1: Identify how to rename objects in the hierarchy

    In Unity, you can rename an object by right-clicking it in the hierarchy and choosing 'Rename' or by selecting it and pressing F2.
  2. Step 2: Understand why other options are incorrect

    Double-clicking in Scene view does not rename. Dragging to Inspector does not rename. Deleting and recreating is unnecessary.
  3. Final Answer:

    Right-click the object and select 'Rename' or press F2 -> Option C
  4. Quick Check:

    Rename via right-click or F2 [OK]
Hint: Use right-click or F2 to rename objects in hierarchy [OK]
Common Mistakes:
  • Trying to rename by double-clicking in Scene view
  • Dragging objects to Inspector to rename
  • Deleting objects to rename
3. Given this hierarchy structure:
RootObject
 ├─ ChildA
 └─ ChildB
     └─ GrandChild

Which object is the parent of GrandChild?
medium
A. RootObject
B. ChildA
C. GrandChild has no parent
D. ChildB

Solution

  1. Step 1: Analyze the hierarchy tree structure

    The tree shows that GrandChild is nested under ChildB, meaning ChildB is its direct parent.
  2. Step 2: Confirm parent-child relationships

    RootObject is the top parent, ChildA and ChildB are children of RootObject, and GrandChild is child of ChildB.
  3. Final Answer:

    ChildB -> Option D
  4. Quick Check:

    Parent of GrandChild = ChildB [OK]
Hint: Look at indentation to find parent-child links [OK]
Common Mistakes:
  • Choosing RootObject as direct parent of GrandChild
  • Confusing siblings with parents
  • Thinking GrandChild has no parent
4. You try to drag an object under another in the Scene hierarchy to make it a child, but it doesn't move. What could be the problem?
medium
A. The object is locked or part of a prefab instance that prevents reparenting
B. You need to rename the object first
C. The Scene hierarchy window is closed
D. You must delete the object before moving it

Solution

  1. Step 1: Understand drag-and-drop restrictions in hierarchy

    Objects that are locked or part of prefab instances may not allow reparenting by drag-and-drop.
  2. Step 2: Eliminate incorrect reasons

    Renaming is unrelated. If hierarchy window was closed, you couldn't drag. Deleting is unnecessary.
  3. Final Answer:

    The object is locked or part of a prefab instance that prevents reparenting -> Option A
  4. Quick Check:

    Locked or prefab blocks drag [OK]
Hint: Check if object is locked or prefab before dragging [OK]
Common Mistakes:
  • Trying to rename to fix drag issue
  • Assuming hierarchy window is closed
  • Thinking deletion is needed to move
5. You want to organize a complex scene by grouping several objects under a new empty GameObject in the Scene hierarchy. What is the best way to do this?
hard
A. Create an empty GameObject, then drag the objects onto it in the hierarchy
B. Rename all objects to have the same prefix
C. Delete the objects and recreate them under a new parent
D. Use the Inspector window to assign parents

Solution

  1. Step 1: Create an empty GameObject as a container

    In Unity, you can create an empty GameObject to act as a group or folder for other objects.
  2. Step 2: Drag objects under the new GameObject in the hierarchy

    Dragging objects onto the empty GameObject makes them its children, organizing the scene.
  3. Step 3: Understand why other options are less effective

    Renaming does not group objects. Deleting is destructive and unnecessary. Inspector does not assign parents directly.
  4. Final Answer:

    Create an empty GameObject, then drag the objects onto it in the hierarchy -> Option A
  5. Quick Check:

    Group by empty GameObject + drag [OK]
Hint: Use empty GameObject as folder, drag children under it [OK]
Common Mistakes:
  • Trying to rename instead of grouping
  • Deleting objects to regroup
  • Using Inspector to assign parents (not possible)
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard