Skip to content

Commit 7abc30a

Browse files
Clearify behaviour of @export in combination with setters
1 parent 65177ea commit 7abc30a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tutorials/scripting/gdscript/gdscript_exports.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ Resources and nodes can be exported.
5252
@export var resource: Resource
5353
@export var node: Node
5454

55+
Even if a script is not executed in the editor, exported properties
56+
can still be edited. However getters and setters will only be used
57+
if the script is in :ref:`doc_gdscript_tool_mode`.
58+
5559
Grouping Exports
5660
----------------
5761

@@ -244,10 +248,6 @@ Therefore, if you specify an extension of Resource such as:
244248
The drop-down menu will be limited to AnimationNode and all
245249
its derived classes.
246250

247-
It must be noted that even if the script is not being run while in the
248-
editor, the exported properties are still editable. This can be used
249-
in conjunction with a :ref:`script in "tool" mode <doc_gdscript_tool_mode>`.
250-
251251
Exporting bit flags
252252
-------------------
253253

0 commit comments

Comments
 (0)