Skip to content

Commit dbb454c

Browse files
committed
update inspector dock
1 parent 4a52813 commit dbb454c

12 files changed

+110
-18
lines changed
12.3 KB
Binary file not shown.
972 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-4.16 KB
Binary file not shown.
17.2 KB
Binary file not shown.
-718 Bytes
Binary file not shown.
-4.05 KB
Binary file not shown.
12.2 KB
Binary file not shown.
-479 Bytes
Binary file not shown.
4.79 KB
Binary file not shown.

tutorials/editor/inspector_dock.rst

+110-18
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,132 @@
1-
:article_outdated: True
2-
31
.. _doc_editor_inspector_dock:
42

5-
The Inspector
6-
=============
3+
Inspector Dock
4+
===============
5+
6+
The Inspector dock lists all properties of an object, resource, or node.
7+
It will update the list of the properties as you select a different node from the
8+
Scene Tree dock, or if you use **Open** command from the FileSystem's context menu.
9+
10+
.. image:: img/inspector_overview.webp
11+
12+
This page explains how the Inspector dock works in-depth. You will learn how to edit
13+
properties, fold and unfold areas, use the search bar, and more.
14+
15+
Usage
16+
-----
17+
18+
If the inspector dock is visible, clicking on a node in the scene tree will automatically
19+
display its properties.
20+
If it is not visible, you can show it by navigating to
21+
**Editor > Editor Settings > Editor Docks > Inspector**.
22+
23+
At the top of the dock are the file and navigation buttons.
24+
25+
.. image:: img/inspector_top_buttons.webp
26+
27+
From left to right:
28+
29+
- Opens a new window to select and create a resource in the memory and edit it.
30+
- Opens a resource from the FileSystem to edit.
31+
- Saves the currently edited resource to disk.
32+
- Provides options to:
33+
34+
- **Edit Resource from Clipboard** by pasting the copied resource.
35+
- **Copy Resource** to clipboard.
36+
- **Show in FileSystem** if the resource is already saved.
37+
- **Make Resource Built-In** to work in a built-in resource, not the one from the disk.
38+
39+
- The "<" and ">" arrows let you navigate through your edited object history.
40+
- The button next to them opens the history list for a quicker navigation. If you created multiple
41+
resources in the memory, you will also see them here.
42+
43+
Below, you can find the selected node's icon, its name, and the quick button to open
44+
its documentation on the right side.
45+
Clicking on the node's name itself will list the sub-resources of this node if there are any.
46+
47+
Then comes the search bar. Type anything in it to filter displayed properties.
48+
Delete the text to clear the search.
49+
This search is case insensitive and also searches letter by letter as you type.
50+
For instance, if you type ``vsb``, one of the results you see will be
51+
Visibility property as this property contains all of these letters.
52+
53+
Before discussing the tool button next to the filter bar, it is worth mentioning
54+
what you actually see below it and how it is structured.
55+
56+
.. image:: img/inspector_dock_overlay.webp
57+
58+
Properties are grouped inside their respective *classes* as *sections*.
59+
You can expand each section to view the related properties.
60+
61+
You can also open the documentation of each class by right-clicking on a class
62+
and selecting **Open Documentation**.
63+
Similarly, you can right click on a property and copy or paste its value,
64+
copy the property path, favorite it to be shown on the top of the inspector, or open its
65+
documentation page.
766

8-
This page explains how the Inspector dock works in-depth. You will learn how to edit properties, fold and unfold areas, use the search bar, and more.
67+
If you hover your mouse over a property, you will see the description of what
68+
it does as well as how it can be called inside the script.
969

10-
.. warning:: This page is a work-in-progress.
70+
You can directly change the values by clicking, typing, or selecting from the menu.
71+
If the property is a number or a slider, you can keep your left mouse button
72+
pressed and drag to change the values.
1173

12-
Overview of the interface
13-
-------------------------
74+
.. image:: img/inspector_dock_subresource.webp
1475

15-
Let's start by looking at the dock's main parts.
76+
If a node's property is a sub-resource, you can click on the down arrow to pick a
77+
resource type, or load one using the **Quick Load** or **Load** options.
78+
Alternatively, a supported resource can be dragged from the FileSystem.
79+
Once you start dragging, the compatible property will be highlighted.
80+
Simply drop it on the appropriate property's value.
1681

17-
.. image:: img/inspector_overview.png
82+
After loading a sub-resource, you can click on it to see its properties or adjust them.
1883

19-
At the top are the file and navigation buttons.
84+
.. |undo| image:: img/inspector_dock_revert.webp
2085

21-
.. image:: img/inspector_top_buttons.png
86+
The values with different values than their original values will have a revert icon (|undo|).
87+
Clicking on this icon reverts the value to its original state.
88+
If the values are linked with each other, they will have a chain icon and changing one
89+
will change others as well. You can unchain them by clicking on this icon.
2290

23-
Below it, you can find the selected node's name, its type, and the tools menu on the right side.
91+
If you are changing a property a lot, you may consider favoriting it by right-clicking and
92+
choosing **Favorite Property**. This will show it at the top of the inspector for all objects
93+
of this class.
2494

25-
.. image:: img/inspector_node_name_and_tools.png
95+
Now that we have a better understanding of the terms, we can proceed with the tool menu.
96+
If you click the tool menu icon next to the filter bar, a drop-down menu will offer
97+
various view and edit options.
2698

27-
If you click the tool menu icon, a drop-down menu offers some view and edit options.
99+
.. image:: img/inspector_tools_menu.webp
28100

29-
.. image:: img/inspector_tools_menu.png
101+
- **Expand All**: Expands all sections showing all available properties.
102+
- **Collapse All**: Collapses all properties showing only classes and the sections.
103+
- **Expand Non-Default**: Only expands the sections where the original value is different
104+
than the current value (the properties with a revert icon (|undo|)).
105+
- **Property Name Style**: This section determines how the properties' text is displayed in
106+
the inspector. ``Raw`` uses the property's own naming, ``Capitalized`` uses title
107+
case by changing the initial letters of each word to uppercase and removing underscores,
108+
``Localized`` displays the translation of the properties if you are using the Editor
109+
in a language other than English.
110+
- **Copy Properties**: Copies all properties of the current node with their current values.
111+
- **Paste Properties**: Pastes the copied properties from the clipboard. Useful to apply
112+
the common properties of one node to another.
113+
- **Make Sub-Resources Unique**: By default, a duplicated node shares the sub-resources of
114+
the original node. Changing one parameter of the sub-resource in one node, affects
115+
the other one.
116+
Clicking this option makes each sub-resource used in this node unique, separated from
117+
other nodes.
118+
119+
.. tip:: If a node has exported variables in its attached script, you will also see these
120+
in the inspector. The first image in this section has one for the Player node:
121+
`Action Suffix`. See :ref:`doc_gdscript_exports` for more on this topic.
30122

31-
Then comes the search bar. Type anything in it to filter displayed properties. Delete the text to clear the search.
123+
.. seealso:: Refer to :ref:`doc_customizing_editor` for dock customization options.
32124

33-
.. image:: img/inspector_search_bar.png
34125

35126
.. break down inspector content in class name, property categories that are foldable, and individual properties.
36127
37128
.. Using the buttons at the top.
38129
.. Using the tool menu
39130
.. List each property type and how to edit it
40131
.. For numerical inputs, mention and link to a page about formulas
132+
.. Refer to :ref:`doc_filesystem_dock`

0 commit comments

Comments
 (0)