Legacy Documentation: Version 5.2
Static GameObjects
Editing Properties

Using the Inspector

The Inspector is used to view and edit object properties and also preferences and other settings within Unity.

Inspector showing a GameObject with components
Inspector showing a GameObject with components

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. For a custom Script component, 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.

Additionally, the Inspector is used to edit import options for Assets (files containing textures, 3D models, fonts, etc). Some scene and project-wide settings are also viewed in the inspector, the Settings Managers being the main example.

This section of the manual explains the various things the inspector can do and how you can make use of them.

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