浏览代码

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

Document that autoloads must not be freed to avoid crashes
Max Hilbrunner 3 年之前
父节点
当前提交
749b98fc50
共有 1 个文件被更改,包括 5 次插入0 次删除
  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
 ---------------------