瀏覽代碼

Update get_world() to get_world_3d() in using_servers.rst (#6449)

get_world() with get_world_3d() on the using servers page
AeioMuch 2 年之前
父節點
當前提交
32d9970205
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/performance/using_servers.rst

+ 1 - 1
tutorials/performance/using_servers.rst

@@ -144,7 +144,7 @@ The 3D APIs are different from the 2D ones, so the instantiation API must be use
         var instance = RenderingServer.instance_create()
         var instance = RenderingServer.instance_create()
         # Set the scenario from the world, this ensures it
         # Set the scenario from the world, this ensures it
         # appears with the same objects as the scene.
         # appears with the same objects as the scene.
-        var scenario = get_world().scenario
+        var scenario = get_world_3d().scenario
         RenderingServer.instance_set_scenario(instance, scenario)
         RenderingServer.instance_set_scenario(instance, scenario)
         # Add a mesh to it.
         # Add a mesh to it.
         # Remember, keep the reference.
         # Remember, keep the reference.