Work with GameObjects
Various tasks you can perform with GameObjects in your scene.
Read time 2 minutesLast updated 6 days ago
In Unity Studio, you use the Hierarchy panel to manage the GameObjects in your scene. From the Hierarchy panel, you can:
- Add a GameObject to your scene
- Select a GameObject in your scene
- GameObject context menu
- Move, rotate, or scale a GameObject
- Add components to GameObjects
Add a GameObject to your scene
You can add GameObjects to your scene to create a world for your application. To add new objects:- Go to the Hierarchy panel.
- Select Add (+), or right-click in the Hierarchy panel. A menu shows which contains a list of the type of objects you can add to your scene.
- Select the type of object you want to add from the menu.
- Go to the Project panel.
- Drag an asset from the Project panel into the Scene view.
Select a GameObject in your scene
To select a GameObject:- Go to the Hierarchy panel.
- Select on the name of your object in the hierarchy list.
GameObject context menu
Right-click the object(s) in the list to access further actions via the context menu. To select multiple objects in the list, hold down the Shift or Ctrl (Cmd on macOS) keys as you right-click the items.Property | Hotkey | Description |
|---|---|---|
| Cut | Ctrl+X | Removes the selected GameObject(s) from the scene and places them on the clipboard. You can then paste the object elsewhere. |
| Copy | Ctrl+C | Copies the selected GameObject(s) to the clipboard but doesn't remove them from the scene. You can then paste the copy elsewhere. |
| Duplicate | Ctrl+D | Create a copy of the object and place the copy at the same location. |
| Delete | Delete | Remove the object from the scene. |
Move, rotate, or scale a GameObject
There are multiple ways to move, rotate, and scale GameObjects in your scene:Use the toolbar
To move, rotate, or scale a GameObject from the toolbar:- Select the GameObject in the Hierarchy panel. The toolbar appears in the Scene view.
- From the toolbar, choose the appropriate tool to move, rotate, or scale the object.
- Click and drag the on-screen handles to adjust the GameObject’s position, rotation, or scale.
Use the Inspector
To move, rotate, or scale a GameObject with the Inspector:- Select the GameObject in the Hierarchy panel. The Inspector window appears.
- On the Transform component, alter the GameObject's position, rotation, and scale.
Add components to GameObjects
In Unity Studio, you can add components to GameObjects to give them new features or behaviors. To add a component to a GameObject:- Select the GameObject in the Hierarchy panel.
- In the Inspector panel, select the Add Component button.
- Choose the component you want to add from the list or search for it using the search bar.