From 508388a9fdf060a92328147b1590615bfcbb501a Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 16 Jul 2020 09:40:51 +0200 Subject: [PATCH] Document an example dictionary returned by `TileSet.tile_get_shapes()` (cherry picked from commit 60bb80505f538e320e8c81a5af286347e83757a1) --- doc/classes/TileSet.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index f8a5be1171..df977addde 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -478,7 +478,17 @@ - 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]