Add get_region_rid() NavigationRegion2D and NavigationRegion3D

Add get_region_rid() to NavigationRegion2D and NavigationRegion3D
This commit is contained in:
smix8
2022-04-30 13:27:30 +02:00
parent d9b4ab3797
commit 05d06b8957
6 changed files with 30 additions and 0 deletions
+6
View File
@@ -16,6 +16,12 @@
Bakes the [NavigationMesh]. The baking is done in a separate thread because navigation baking is not a cheap operation. This can be done at runtime. When it is completed, it automatically sets the new [NavigationMesh].
</description>
</method>
<method name="get_region_rid" qualifiers="const">
<return type="RID" />
<description>
Returns the [RID] of this region on the [NavigationServer3D]. Combined with [method NavigationServer3D.map_get_closest_point_owner] can be used to identify the [NavigationRegion3D] closest to a point on the merged navigation map.
</description>
</method>
</methods>
<members>
<member name="enabled" type="bool" setter="set_enabled" getter="is_enabled" default="true">