Allow disabling the built-in tilemap navigation
This commit is contained in:
parent
4b7cc99bc1
commit
c820c8d1e6
3 changed files with 58 additions and 2 deletions
|
|
@ -262,6 +262,13 @@
|
|||
If [param layer] is negative, the layers are accessed from the last one.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_layer_navigation_enabled" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="layer" type="int" />
|
||||
<description>
|
||||
Returns if a layer's built-in navigation regions generation is enabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_layer_y_sort_enabled" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="layer" type="int" />
|
||||
|
|
@ -390,6 +397,14 @@
|
|||
If [param layer] is negative, the layers are accessed from the last one.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_layer_navigation_enabled">
|
||||
<return type="void" />
|
||||
<param index="0" name="layer" type="int" />
|
||||
<param index="1" name="enabled" type="bool" />
|
||||
<description>
|
||||
Enables or disables a layer's built-in navigation regions generation. Disable this if you need to bake navigation regions from a TileMap using a [NavigationRegion2D] node.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_layer_navigation_map">
|
||||
<return type="void" />
|
||||
<param index="0" name="layer" type="int" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue