mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Clarify NavigationServer created regions
Clarify that NavigationServer create navigation regions do not join a navigation map automatically like a NavigationRegion node would. The server API created regions need a manual map assignment with region_set_map().
This commit is contained in:
@@ -34,9 +34,9 @@ Regions can be enabled / disabled and if disabled will not contribute to future
|
||||
Creating new navigation regions
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
New navigation regions will automatically register to the default world navigation map.
|
||||
New NavigationRegion nodes will automatically register to the default world navigation map for their 2D/3D dimension.
|
||||
|
||||
The region RID can be obtained from NavigationRegion Nodes with ``get_region_rid()``.
|
||||
The region RID can then be obtained from NavigationRegion Nodes with ``get_region_rid()``.
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
@@ -47,6 +47,8 @@ The region RID can be obtained from NavigationRegion Nodes with ``get_region_rid
|
||||
|
||||
New regions can also be created with the NavigationServer API and added to any existing map.
|
||||
|
||||
If regions are created with the NavigationServer API directly they need to be assigned a navigation map manually.
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
|
||||
Reference in New Issue
Block a user