1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

doc: Document what happens to old script with Object.set_script()

This commit is contained in:
rainlizard
2019-12-13 18:35:29 +11:00
committed by Rémi Verschelde
parent 8454804972
commit 0a965300e7

View File

@@ -460,6 +460,7 @@
</argument>
<description>
Assigns a script to the object. Each object can have a single script assigned to it, which are used to extend its functionality.
If the object already had a script, the previous script instance will be freed and its variables and state will be lost. The new script's [method _init] method will be called.
</description>
</method>
<method name="to_string">