Browse Source

Clarify that EditorScript can only run using the internal script editor (#8623)

* Add note that _run() can only be called from Godot's internal script editor
Adriaan 5 months ago
parent
commit
f0f13fcdbb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tutorials/plugins/running_code_in_the_editor.rst

+ 5 - 0
tutorials/plugins/running_code_in_the_editor.rst

@@ -509,6 +509,11 @@ currently focused on the script editor.
 
 
 Scripts that extend EditorScript must be ``@tool`` scripts to function.
 Scripts that extend EditorScript must be ``@tool`` scripts to function.
 
 
+.. note::
+
+    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::
 .. danger::
 
 
     EditorScripts have no undo/redo functionality, so **make sure to save your
     EditorScripts have no undo/redo functionality, so **make sure to save your