Inspector
Last updated
Last updated
The Inspector (4) is one of the main panels in which most of the creation of the game and the project will take place. Because the inspector displays all the information about the game object, starting from the name to various parameters and flags that can be applied and used on it. The inspector also displays information about all assets, allows you to configure their import settings.
The inspector also will display all the attached components of the objects.
At the very top of the inspector, basic information about the current object is displayed.
If you left-click on this button, popups Object Properties window with object settings.
The next is object Tag button that can be added to the object or changed.
To put it briefly, when you click on Tags button, you will be transferred to another section of the inspector, this is Tag Manager. More information about tags and the tag manager can be found in the Tags page.
Just like with tags, clicking on the Components Menu button opens an additional window with a list of all the components that can be added. Read more about Game Objects and Components page.
Then the inspector will display all the components of the current object. For an example of a component, let's take a Camera and its component.
When we click on the components bar tab, we can hide it or show it, and when we click on the settings button, we can see a pop-up with additional component functions, for example, Remove Component. Depending on the component, the settings may very slightly. For example, for the Transform component, we cannot delete the component and therefore this button will not be on it.
Also order of each component can be change and swapped. In settings menu click to Move Up or Move Down buttons to switch its order. That order will globally changed i.e not per GameObject.
Here full list of available component commands.
And after this next all that you see its just component specific parameters and options that can be modify. For example, you can make the main camera or change its background or change the camera type itself.
Also you can drag drop any component from Inspector to Assets Browser and its will be converted to Preset asset.
And you can apply preset properties on components by dragging preset asset with the same type on component header, and properties from preset applies on component.
Namely the icon that tells us that this is a normal object. Because in addition to the usual objects, there are also prefabs that will have a different icon . Also if your object will be disabled in the scene it will be displayed as gray icon.
As well as a checkbox that make object not active in the scene or active again. This will affect on its displaying in editor and game mode. If the check mark is on, the object will be shown in runtime otherwise it will not be active and will not be displayed and it will not be affected by any commands, including commands from a script. The next, name of the object is also displayed here, which can be changed in the input box.
Absolutely every component in the upper bar will display an icon of the component and its names, as well as a settings button.
Command | Description |
---|---|
Copy Component
Copy component properties to component buffer.
Paste Component
Paste component properties to another component with the same type.
Paste Component As New
Create new component on a GameObject if not exist, if exist read it with copied properties.
Remove Component
Removes component from GameObject.
Reset
Reset component properties to default.
Move Up
Moves up current component and change its order.
Move Down
Moves down current component and change its order.
Show/Hide Z axis (Transform Only)
Hide or show the Z axis for edit on Transform.
Display File (Script Only)
Display the script file in editor text box as preview.
Display Fields (Script Only)
Displays all public fields of a script and ability to modify it.
Executable (Script Only)
Stops or enables script execution in play mode.