From ac646d57aed970c874ac22257ea7c156bc2f3151 Mon Sep 17 00:00:00 2001 From: Adriaan de Jongh <5611323+AdriaandeJongh@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:25:33 +0900 Subject: [PATCH 1/2] Add note that _run() can only be called from Godot's internal script editor --- tutorials/plugins/running_code_in_the_editor.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tutorials/plugins/running_code_in_the_editor.rst b/tutorials/plugins/running_code_in_the_editor.rst index 0c5e0a51075..3a498323bb3 100644 --- a/tutorials/plugins/running_code_in_the_editor.rst +++ b/tutorials/plugins/running_code_in_the_editor.rst @@ -503,6 +503,11 @@ currently focused on the script editor. Scripts that extend EditorScript must be ``@tool`` scripts to function. +.. note:: + + If you are using an external editor, open the script inside the Godot + script editor so you can execute the function. + .. danger:: EditorScripts have no undo/redo functionality, so **make sure to save your From e49fd0f3502aa1c4f4bdf33ea12841645a60d42a Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 2 Mar 2025 11:47:50 -0500 Subject: [PATCH 2/2] Update tutorials/plugins/running_code_in_the_editor.rst Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com> --- tutorials/plugins/running_code_in_the_editor.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/plugins/running_code_in_the_editor.rst b/tutorials/plugins/running_code_in_the_editor.rst index 3a498323bb3..e4909eb5917 100644 --- a/tutorials/plugins/running_code_in_the_editor.rst +++ b/tutorials/plugins/running_code_in_the_editor.rst @@ -505,8 +505,8 @@ Scripts that extend EditorScript must be ``@tool`` scripts to function. .. note:: - If you are using an external editor, open the script inside the Godot - script editor so you can execute the function. + EditorScripts can only be run from the Godot script editor. If you are using + an external editor, open the script inside the Godot script editor to run it. .. danger::