summaryrefslogtreecommitdiff
path: root/modules/gridmap/doc_classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-16 08:06:28 +0100
committerGitHub <noreply@github.com>2022-02-16 08:06:28 +0100
commit5cbd982df100650057db3d98b53588839e92a653 (patch)
treeb73f6e5aa2062ce0ac714234710c045ac4f1b565 /modules/gridmap/doc_classes
parent98b97d34df7f3ab2cafc3847358c231c3d357b40 (diff)
parent19a2ec3d04b0eaad0e9a8378ee6eb35e8c999dea (diff)
Merge pull request #58170 from timothyqiu/gridmap-used-id
Add `GridMap.get_used_cells_by_item`
Diffstat (limited to 'modules/gridmap/doc_classes')
-rw-r--r--modules/gridmap/doc_classes/GridMap.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gridmap/doc_classes/GridMap.xml b/modules/gridmap/doc_classes/GridMap.xml
index 2ea9a78970..049d372671 100644
--- a/modules/gridmap/doc_classes/GridMap.xml
+++ b/modules/gridmap/doc_classes/GridMap.xml
@@ -79,6 +79,13 @@
Returns an array of [Vector3] with the non-empty cell coordinates in the grid map.
</description>
</method>
+ <method name="get_used_cells_by_item" qualifiers="const">
+ <return type="Array" />
+ <argument index="0" name="item" type="int" />
+ <description>
+ Returns an array of all cells with the given item index specified in [code]item[/code].
+ </description>
+ </method>
<method name="make_baked_meshes">
<return type="void" />
<argument index="0" name="gen_lightmap_uv" type="bool" default="false" />