---
description: All the details of your assets and items
---

# Inspector Window

One of the most important windows, the Inspector shows all the components and attributes of a selected game object or Asset.

## Default View

The information in the Inspector window changes depending on what game objects and assets you have selected.

Example of a default sphere **game object** when selected in the Hierarchy window:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRaydxBkKVwVLl1H9Mr%2Fimage.png?alt=media\&token=1f6796b6-cb3b-4ace-9072-fe5d9c5a64fc)

Example of a default empty game object when selected in the Hierarchy window:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRayg1uTlRE2E0y_RLX%2Fimage.png?alt=media\&token=1ce2ede3-eb71-4906-bdf8-93e65d6e6280)

Example of a Main Camera **game object** when selected in the Hierarchy window:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRayhvDWA0cc8QUYpbr%2Fimage.png?alt=media\&token=92cd9d37-46cf-49f5-bc00-1c3263af4d43)

Example of a directional light **game object** when selected in the Hierarchy window:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRaylgPD6f2wRYWfCzh%2Fimage.png?alt=media\&token=15734065-731e-4503-beab-46e8926bc13c)

Example of a material **asset** when selected in the Project window:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRayoMWGFGd8SOKcogV%2Fimage.png?alt=media\&token=b8d74682-e3a1-4e19-a561-ebe683068a86)

## Game Object Header Information

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRayqUY5wRTVRbbba9t%2Fimage.png?alt=media\&token=75b4b26a-2d1e-4758-b648-dc3947b00a80)

The header generally shows the following elements for selected game objects:

**Icon, Label, or Gizmo** - represents the type of game object. Click on this icon to change it.

**Active (checkbox)** - objects can be turned on and off\
Notes: \
\- Shortcut:   ALT + SHIFT + A\
\- Scripts trying to access inactive objects will give you an error.

**Game object name** - Can be updated within the Inspector window

**Static (checkbox)** - Whether the object is Static and the type of static. Click on "Static" to see more options.

**Tag** **(Dropdown)** - Tags can be added or selected from a list to help with organization and access through a script.

**Layer (Dropdown)** - Layers can help a script determine how elements interact with certain objects.

## Asset Header Information

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRaywMcadhTSEcMD52d%2Fimage.png?alt=media\&token=46bd399a-f3c5-4a74-9665-0e1e2a0fd19a)

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRayyARaYstkDs0cfk2%2Fimage.png?alt=media\&token=c18e0f19-ec2b-4dd9-8dee-3bff922a0c56)

The header generally shows the following elements for selected assets:

**Icon / Preview** representing the type of asset

**Name** - This can be changed in the Project window or within the Assets folder

**Connection to other assets** - Some assets use other assets (materials use shaders) and will have a reference to it.

**Commands (Buttons)** - Open folders, prefabs, and scripts.

## Transform Component

You'll notice that every game object in your scene has a _Transform_ component that stores coordinates for the object's position, rotation, and scale.

## Components

Components are really just pieces of script that you can add, update, and remove from game objects. Many have default built-in components so you do not have to write them yourself. They are even accessible by other scripts!

Components will not be covered in depth here, so please use the Unity documentation for specific details.

Let's look at some common elements of a component as it appears in the Inspector window:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRaz2ZwhNWFffhpOos4%2Fimage.png?alt=media\&token=dffcf4e5-4264-4d15-9bdb-155e7d33e463)

Components can pile up in the Inspector window, so there are dropdown toggle triangles on the left. You can use these to collapse the entire component or sections of attributes.

Many components allow you to turn them off and on by using the checkbox to the left of the component name.

**Note:** Scripts will give an error if they are trying to access a component that has been turned off.

## Add Component Button

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRaz4aYK5UVxkzfozpo%2Fimage.png?alt=media\&token=67fa5345-7c7a-4a4d-9e06-28b252e8bb57)

At the bottom of the list of components, there's an "Add Component" button. This provides a list of current built-in and user-created components to add. You can also create a new script through this menu and it will automatically appear on that game object after naming it.

## Extras for Assets

Many assets have previews within the Inspector window at the bottom.

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRaz94xtIcVeELzB6ZW%2Fimage.png?alt=media\&token=6d1c528d-058b-4b7b-94fe-89960011f3a4)

The preview allows you to preview materials, videos, audio, and animation.

The blue "label" icon on the right allows you to label your assets with one or more labels.&#x20;

For information on Asset Bundles, please see the [Unity documentation](https://docs.unity3d.com/ScriptReference/AssetBundle.html).

## Still lost?

Use the icons seen on the top right of components and parameters for Unity documentation, presets, and settings:

![](https://3674232557-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MR1EQixIaV64lGrdh2s%2F-MRayPwvKJbPEpUxg9J1%2F-MRazJxJz0nstxLTCGcP%2Fimage.png?alt=media\&token=366b47be-b3a0-4599-97d9-714b4f354fee)
