mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Fix script error in NavigationMesh example
Fixes script error in NavigationMesh example.
This commit is contained in:
@@ -378,7 +378,7 @@ The following script uses the NavigationServer to update a navigation region wit
|
||||
PackedInt32Array([0, 1, 2, 3])
|
||||
)
|
||||
|
||||
NavigationServer2D.region_set_navigation_polygon(new_2d_region_rid, new_navigation_mesh)
|
||||
NavigationServer2D.region_set_navigation_polygon(region_rid, navigation_mesh)
|
||||
|
||||
.. code-tab:: gdscript 3D GDScript
|
||||
|
||||
@@ -408,4 +408,4 @@ The following script uses the NavigationServer to update a navigation region wit
|
||||
PackedInt32Array([0, 1, 2, 3])
|
||||
)
|
||||
|
||||
NavigationServer3D.region_set_navigation_mesh(new_3d_region_rid, navigation_mesh)
|
||||
NavigationServer3D.region_set_navigation_mesh(region_rid, navigation_mesh)
|
||||
|
||||
Reference in New Issue
Block a user