Jelajahi Sumber

Document that autoloads must not be freed to avoid crashes

(cherry picked from commit cb9b2b8c5d0281bc2a534a15a8fc361214d64bbe)
Hugo Locurcio 3 tahun lalu
induk
melakukan
f4f3e1926c
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  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
 ---------------------