Legacy Documentation: Version 5.4
The Hierarchy window
Editing Properties

The Inspector Window

The inspector in its default position in Unity
The inspector in its default position in Unity

Inspecting Game Objects

The showing a typical Game Object and its components
The showing a typical Game Object and its components

The Inspector is used to view and edit the properties and settings of Game Objects, Assets, and other preferences and settings in the Editor.

When you select a GameObject in the Hierarchy or Scene View, the Inspector will show the Properties of all Components and Materials on that object and allow you to edit them. The image above shows the inspector with the default 3D camera GameObject selected. In addition to the object’s position, rotation and scale values, all the properties of the camera are available to edit.

Inspecting Script Variables

Inspector showing a GameObject several custom scripts attached, and their public properties available to edit.
Inspector showing a GameObject several custom scripts attached, and their public properties available to edit.

When Game Objects have custom Script components attached, the public variables of that script are also shown in the inspector and can be viewed and edited like the properties of Unity’s built-in components. This allows you to set parameters and default values in your scripts easily without modifying the code.

Inspecting Assets

Inspector showing the import settings for a texture
Inspector showing the import settings for a texture

When an Asset is selected in your Project Window, the Inspector will show you the settings related to how that asset is imported and used at runtime. Each type of asset will have a different arrangement of settings. Below are some examples of the inspector showing the import settings for other asset types:

Inspector showing the import settings for an FBX file containing 3D models
Inspector showing the import settings for an FBX file containing 3D models
Inspector showing the import settings for an audio file
Inspector showing the import settings for an audio file
Inspector showing the import settings for a Material Asset
Inspector showing the import settings for a Material Asset

Project Settings

Inspector showing the Tags and Layers Project Settings panel
Inspector showing the “Tags and Layers” Project Settings panel

When you select any of the Project Settings categories (found under: Editor -> Project Settings), those settings will be displayed in the inspector. Find out more about these on the Settings Managers page.

The Hierarchy window
Editing Properties
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961