Adding Components in the Inspector
Last updated
Last updated
Menus below may vary depending on what packages and plugins have been installed.
Changes and additions made to game objects while in Play Mode will revert back to the values before playing.
You can copy the component and its values in Play Mode, then paste the values or as a new component when no longer in Play Mode.
When you select a game object or asset, you will see the Add Component button at the end of the components in the Inspector:
Click this to open up a list of components and a search field.
It starts with categories. Once you click on a category such as Physics, it will show you subcategories and components.
The search field is powerful, showing components matching your search term as you type it in.
The search is remembered and appears the next time you click Add Component.
Click on the component and it will be added to your game object or asset, appearing in the Inspector window at the bottom, above the Add Component button (and Material, if it exists).
You can right-click on any component and click Copy Component.
To paste a full component right-click in the Inspector Tab and click Paste Component As New.
If you are copying values from one object or asset to update another, click Paste Component Values instead.
Reset will return all values to a built-in default value.
Creating Custom Components and ScriptsUpdating ComponentsDeleting Components and Scripts