Unity Basics
  • Welcome
  • Getting Started with Unity Software
  • Helpful Shortcuts
  • The Unity Software Interface
    • The Default Interface
    • The Windows (Tabs)
      • Hierarchy Window
      • Scene Window
      • Project Window
      • Inspector Window
      • Game Window
      • Console Window
    • Other Layouts
      • Create a Custom Layout
  • Create
    • Creating Game Objects
      • 3D Primitives
      • Creating Game Objects in the Editor
      • Spawning Objects
      • Unhiding/Hiding Objects During Gameplay
      • Parenting
    • Creating Assets
    • Creating Components and Scripts
      • Adding Components in the Inspector
      • Creating Custom Components and Scripts
    • Creating Prefabs
  • Select and Update
    • General Selection
    • Search and Focus
    • Updating Game Objects
      • Updating Game Objects in the Editor
      • Updating Prefabs
    • Updating Assets
    • Updating Components
      • Update Components in the Inspector
      • Accessing Components Through Scripts
  • Delete
    • Deleting Game Objects
      • Deleting and Disabling Objects in the Editor
      • Using the Destroy() Function
    • Deleting Components and Scripts
      • Disabling and Removing Components in the Editor
      • Disabling and Removing Components During Gameplay
  • Translate, Rotate, and Scale
    • Intro to Transforms
    • Handy Transform Shortcuts
    • Translate
      • Positioning Game Objects in the Editor
      • Updating Position Through Script Code
      • Using the Transform.Translate() Function
    • Rotate
      • Rotating Game Objects in the Editor
      • Updating Rotation Through Script Code
      • Using the Transform.Rotate() Function
    • Scale
      • Resizing/Scaling Objects in the Editor
      • Updating Scale Through Script Code
    • Controlling Speed
    • Common Issues with Transforms
  • Materials
    • Material Basics
      • Creating and Applying Materials
      • Accessing Materials Through Code
  • Physics
    • Physics Basics
    • Colliders and Triggers
      • Collider Component Overview
      • Accessing Colliders Through Scripts
      • Common Issues: Colliders and Triggers
    • Rigidbody Component
      • Rigidbody Component Overview
      • Accessing the Rigidbody Component Through Scripts
      • Common Issues: Rigidbody Components
    • Common Issues: Physics and Velocity
  • Interaction
    • Interaction Basics
    • Keyboard Controls
    • Mouse Controls
  • Coding Basics
    • Intro to Scripts
    • Variables
    • Conditionals (If / Then / Else)
    • Arrays
    • Loops
    • Functions
Powered by GitBook
On this page
  • Default View
  • Game Object Header Information
  • Asset Header Information
  • Transform Component
  • Components
  • Add Component Button
  • Extras for Assets
  • Still lost?

Was this helpful?

  1. The Unity Software Interface
  2. The Windows (Tabs)

Inspector Window

All the details of your assets and items

PreviousProject WindowNextGame Window

Last updated 4 years ago

Was this helpful?

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:

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

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

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

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

Game Object Header Information

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

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:

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

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.

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.

Still lost?

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

Check out the chapter for more information.

:: Learn more info about .

For information on Asset Bundles, please see the .

Translate, Rotate, and Scale
creating components and scripts
Unity documentation
Example header info for game objects
Example header info for a material asset
Example header info for a script asset
A built-in Mesh Renderer component, default for most visible game objects