From aa8c63f8afb4c2d427b93d521da88bdd4a0d7eb9 Mon Sep 17 00:00:00 2001 From: Zak Grumbles Date: Fri, 23 Sep 2022 16:55:19 -0500 Subject: [PATCH] Add note regarding RefCounted to EditorScript docs (cherry picked from commit e5dc2ed98278575ca6d0cae68228995bbc386ada) --- doc/classes/EditorScript.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/EditorScript.xml b/doc/classes/EditorScript.xml index 5fa00a6f6cc..29ea87a358f 100644 --- a/doc/classes/EditorScript.xml +++ b/doc/classes/EditorScript.xml @@ -15,6 +15,7 @@ print("Hello from the Godot Editor!") [/codeblock] [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 reference counted, meaning it is destroyed when nothing references it. This can cause errors during asynchronous operations if there are no references to the script.