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

View file

@ -10,6 +10,14 @@
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_region_rid" qualifiers="const">
<return type="RID" />
<description>
Returns the [RID] of this region on the [NavigationServer2D]. Combined with [method NavigationServer2D.map_get_closest_point_owner] can be used to identify the [NavigationRegion2D] 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">
Determines if the [NavigationRegion2D] is enabled or disabled.