Merge pull request #40442 from Calinou/doc-tile-get-shapes

Document an example dictionary returned by `TileSet.tile_get_shapes()`
This commit is contained in:
Rémi Verschelde 2020-07-26 16:42:35 +02:00 committed by GitHub
commit da621ab0c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -478,7 +478,17 @@
<argument index="0" name="id" type="int">
</argument>
<description>
Returns an array of the tile's shapes.
Returns an array of dictionaries describing the tile's shapes.
[b]Dictionary structure in the array returned by this method:[/b]
[codeblock]
{
"autotile_coord": Vector2,
"one_way": bool,
"one_way_margin": int,
"shape": CollisionShape2D,
"shape_transform": Transform2D,
}
[/codeblock]
</description>
</method>
<method name="tile_get_texture" qualifiers="const">