Work with GameObjects
Various tasks you can perform with GameObjects in your scene.
Read time 2 minutesLast updated 2 days ago
In Unity Lite, 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
- Remove GameObjects from your scene
- Duplicate objects
- Copy/Paste objects
- Rename objects
- Reorder objects
- 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. |
Add components to GameObjects
In Unity Lite, 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.