Sfoglia il codice sorgente

Merge pull request #5815 from Calinou/autoload-no-free

Document that autoloads must not be freed to avoid crashes
Max Hilbrunner 3 anni fa
parent
commit
749b98fc50
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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
 ---------------------