From 1356982b40c23746fc871d548b8490d441c67aee Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Fri, 20 Sep 2024 12:30:23 +0200 Subject: [PATCH] Clearify behaviour of `@export` in combination with setters --- tutorials/scripting/gdscript/gdscript_exports.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/scripting/gdscript/gdscript_exports.rst b/tutorials/scripting/gdscript/gdscript_exports.rst index 4e7430703ab..cb1419fc738 100644 --- a/tutorials/scripting/gdscript/gdscript_exports.rst +++ b/tutorials/scripting/gdscript/gdscript_exports.rst @@ -52,6 +52,10 @@ Resources and nodes can be exported. @export var resource: Resource @export var node: Node +Even if a script is not executed in the editor, exported properties +can still be edited. However, getters and setters will only be used +if the script is in :ref:`doc_gdscript_tool_mode`. + Grouping Exports ---------------- @@ -244,10 +248,6 @@ Therefore, if you specify an extension of Resource such as: The drop-down menu will be limited to AnimationNode and all its derived classes. -It must be noted that even if the script is not being run while in the -editor, the exported properties are still editable. This can be used -in conjunction with a :ref:`script in "tool" mode `. - Exporting bit flags -------------------