# Adding Components in the Inspector

{% hint style="info" %}
Menus below may vary depending on what packages and plugins have been installed.
{% endhint %}

{% hint style="danger" %}
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.
{% endhint %}

## Adding a Built-In Component

When you select a game object or asset, you will see the **Add Component** button at the end of the components in the [Inspector](https://hopemoore.gitbook.io/unity-basics/the-unity-interface/the-tabs/inspector-tab):

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9Knhy1bLLeiid0H9XF%2F-M9KwxKQhORrf1wKq5QQ%2Fimage.png?alt=media\&token=24213e03-75b8-47c4-bb9e-a93d772b4c26)

Click this to open up a list of components and a search field.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9Knhy1bLLeiid0H9XF%2F-M9KxFb7eK7pxrkTEl9g%2Fimage.png?alt=media\&token=4840de68-6ccc-4e24-bed1-5c00c68ca359)

It starts with categories. Once you click on a category such as Physics, it will show you subcategories and components.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9Knhy1bLLeiid0H9XF%2F-M9KxvHVC5Jje1YkTltA%2Fimage.png?alt=media\&token=c788c2bf-d423-4e42-b01a-44a998ffb108)

The search field is powerful, showing components matching your search term as you type it in.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9Knhy1bLLeiid0H9XF%2F-M9Kz-AYhDsotTRBMj7K%2Fimage.png?alt=media\&token=e08f5de4-8af5-48e0-a8c8-6d68290c9ce7)

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).

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9Knhy1bLLeiid0H9XF%2F-M9KycoyXCJboqeiI-wy%2Fimage.png?alt=media\&token=9ec808b1-37c7-44ee-a780-62eeb7736ae2)

## Duplicate, Copy, and Paste

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9M-O3N6P3KlgHeij7p%2F-M9M6luiNOg79Ru-htKj%2Fimage.png?alt=media\&token=010f23c5-2706-4e4d-b366-9be3279e53be)

### **Copying**

You can right-click on any component and click Copy Component.

### **Pasting**

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.

{% content-ref url="custom-components-and-scripts" %}
[custom-components-and-scripts](https://hopemoore.gitbook.io/unity-basics/create/create-scripts/custom-components-and-scripts)
{% endcontent-ref %}

{% content-ref url="../../select/components" %}
[components](https://hopemoore.gitbook.io/unity-basics/select/components)
{% endcontent-ref %}

{% content-ref url="../../delete/components" %}
[components](https://hopemoore.gitbook.io/unity-basics/delete/components)
{% endcontent-ref %}
