瀏覽代碼

Fixed small mistake in example (Thread Safe APIs) (#4778)

Though it's a bit unrelated to the topic of this file, the example demonstrated creating an instance of an instance of a scene.
TchnlgPsnt 4 年之前
父節點
當前提交
a0916221b3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/performance/thread_safe_apis.rst

+ 1 - 1
tutorials/performance/thread_safe_apis.rst

@@ -34,7 +34,7 @@ However, creating scene chunks (nodes in tree arrangement) outside the active tr
 
 ::
 
-    var enemy_scene = load("res://enemy_scene.scn").instance()
+    var enemy_scene = load("res://enemy_scene.scn")
     var enemy = enemy_scene.instance()
     enemy.add_child(weapon) # Set a weapon.
     world.call_deferred("add_child", enemy)