summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2022-10-19 22:02:46 +0200
committerGitHub <noreply@github.com>2022-10-19 22:02:46 +0200
commitee772f109f223a47d9dda0fd3fa32eca2474869d (patch)
treea3167c9f90458b2e54a80ee10179dc71c346ccd8
parente6311c8e5e97f426e38f150f74b357a3ff6e3b3f (diff)
parente5dc2ed98278575ca6d0cae68228995bbc386ada (diff)
Merge pull request #66326 from zak-grumbles/editor_script_reference_docs
Add note regarding RefCounted to EditorScript docs
-rw-r--r--doc/classes/EditorScript.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/EditorScript.xml b/doc/classes/EditorScript.xml
index dfc04c9cde..a02fd215d8 100644
--- a/doc/classes/EditorScript.xml
+++ b/doc/classes/EditorScript.xml
@@ -30,6 +30,7 @@
[/csharp]
[/codeblocks]
[b]Note:[/b] The script is run in the Editor context, which means the output is visible in the console window started with the Editor (stdout) instead of the usual Godot [b]Output[/b] dock.
+ [b]Note:[/b] EditorScript is [RefCounted], meaning it is destroyed when nothing references it. This can cause errors during asynchronous operations if there are no references to the script.
</description>
<tutorials>
</tutorials>