Merge pull request #66326 from zak-grumbles/editor_script_reference_docs

Add note regarding RefCounted to EditorScript docs
This commit is contained in:
Max Hilbrunner 2022-10-19 22:02:46 +02:00 committed by GitHub
commit ee772f109f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>