Documentation

Support

Unity Studio

Open Unity Studio

Unity Studio

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:
  1. Select the GameObject in the Hierarchy panel.
  2. In the Inspector panel, select Add Component.
  3. 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.
To add another component, repeat the same instructions.

Edit components

To edit a component on a GameObject:
  1. Select the GameObject in the Hierarchy panel. That GameObject's Inspector panel shows with the components it currently contains.
  2. In the Inspector panel, find the component you want to edit.
  3. Edit the component's properties.

Remove components from a GameObject

To remove components:
  1. Select the GameObject in the Hierarchy panel. That GameObject's Inspector panel shows with the components it currently contains.
  2. Find the component you want to remove.
  3. Select Options () > Remove.
The component is removed from the GameObject.

Additional resources