浏览代码

Document that autoloads must not be freed to avoid crashes

Hugo Locurcio 3 年之前
父节点
当前提交
cb9b2b8c5d
共有 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
 ---------------------