mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
Update get_world() to get_world_3d() in using_servers.rst (#6449)
get_world() with get_world_3d() on the using servers page
This commit is contained in:
@@ -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()
|
||||
# Set the scenario from the world, this ensures it
|
||||
# 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)
|
||||
# Add a mesh to it.
|
||||
# Remember, keep the reference.
|
||||
|
||||
Reference in New Issue
Block a user