Work with components on a GameObject
Instructions on how to add various components to your GameObject.
Read time 1 minuteLast updated 2 days ago
You can add multiple components to your GameObjects to give them additional functionality. For example,
Add components to a GameObject
To add a component to your GameObject:- Select the GameObject in the Hierarchy panel.
- In the Inspector panel, select Add Component.
- Choose your desired component type.
- For Logic components, you can either select a script that exists already in the project, or use the NEW LOGIC field to create a new script.
Edit components
To edit a component on a GameObject:- Select the GameObject in the Hierarchy panel. That GameObject's Inspector panel shows with the components it currently contains.
- In the Inspector panel, find the component you want to edit.
- Edit the component's properties.
Remove components from a GameObject
To remove components:- Select the GameObject in the Hierarchy panel. That GameObject's Inspector panel shows with the components it currently contains.
- Find the component you want to remove.
- Select Options (⋮) > Remove.