Selaa lähdekoodia

Document that autoloads must not be freed to avoid crashes

(cherry picked from commit cb9b2b8c5d0281bc2a534a15a8fc361214d64bbe)
Hugo Locurcio 3 vuotta sitten
vanhempi
commit
73fc6f81c7
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      tutorials/scripting/singletons_autoload.rst

+ 5 - 0
tutorials/scripting/singletons_autoload.rst

@@ -99,6 +99,11 @@ you'll see the autoloaded nodes appear:
 
 .. image:: img/autoload_runtime.png
 
+.. warning::
+
+    Autoloads must **not** be removed using ``free()`` or ``queue_free()`` at
+    runtime, or the engine will crash.
+
 Custom scene switcher
 ---------------------