summaryrefslogtreecommitdiff
path: root/doc/classes/EditorScript.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/EditorScript.xml')
-rw-r--r--doc/classes/EditorScript.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/EditorScript.xml b/doc/classes/EditorScript.xml
index b39972694b..a02fd215d8 100644
--- a/doc/classes/EditorScript.xml
+++ b/doc/classes/EditorScript.xml
@@ -9,7 +9,7 @@
[b]Example script:[/b]
[codeblocks]
[gdscript]
- tool
+ @tool
extends EditorScript
func _run():
@@ -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>
@@ -44,7 +45,7 @@
<return type="void" />
<param index="0" name="node" type="Node" />
<description>
- Adds [code]node[/code] as a child of the root node in the editor context.
+ Adds [param node] as a child of the root node in the editor context.
[b]Warning:[/b] The implementation of this method is currently disabled.
</description>
</method>