Organize objects
Rename, duplicate, group, delete, nest, hide, and lock objects in the Hierarchy window in Unity Spark.
Read time 3 minutesLast updated 3 hours ago
Keep your scene manageable by naming, grouping, and nesting objects, and by hiding or locking objects that block your view or your selection while you work in the Scene view.
For how parent and child objects behave, refer to Introduction to objects and prefabs.
Rename an object
To rename an object:
- Right-click (macOS: Ctrl+click) the object in the Hierarchy window or the Scene view.
- Select Rename.
- Enter the new name.
- Press Enter to confirm, or Esc to cancel.
You can also edit the name at the top of the Inspector window.
Duplicate, group, and delete objects
Right-click (macOS: Ctrl+click) an object in the Hierarchy window or the Scene view to access the following actions. They act on the whole selection.
Action | Description |
|---|---|
| Duplicate | Makes a copy of the selection. In the Scene view, you can also press Ctrl+D (macOS: Cmd+D). If you move the copy, the next duplicate repeats that move. To make several copies at once, press Ctrl+Shift+D (macOS: Cmd+Shift+D). |
| Group | Puts the selection inside a new empty object called |
| Delete | Deletes the selection. You can also press Delete or Backspace. |
Unity Spark doesn't ask for confirmation before it deletes an object. To undo, press Ctrl+Z (macOS: Cmd+Z). In the Scene view, the right-click menu also has Copy, Cut, and Paste.
Nest objects
A child object moves, turns, and scales with its parent object. In the Hierarchy window, you can do the following:
- To make an object a child object of another object, drag its row onto the other row.
- To change the order, drag a row between two rows.
- To move an object back to the top level, drag its row onto the empty area under the list.
If you select several rows, they move together.
Hide or lock an object
Hide an object to remove it from the Scene view while you work, or make it not selectable so clicks in the Scene view don't select it.
To hide an object or make it not selectable:
- In the Hierarchy window, hover over the object's row to display its buttons.
- Select Hide (eye icon) or Make unselectable (second button). UI elements have only the Make unselectable button, because you can't hide them this way.
A hidden object is hidden in the Scene view only. It still appears when you play the game. In the Hierarchy window, you can still select an object that's not selectable in the Scene view.
When an object is hidden or not selectable, its button stays visible without hovering. To show the object or make it selectable again, select Show or Make selectable. You can't hide or show an object, or change whether it's selectable, while the game is playing.