When I try get properties with tileset.getTileProperties(index) all works fine.
When I try get type with tileset.getTileData(index) I get a empty undefined value. Inspect my JS tileset, I see that tileData object is empty:
With getTileProperties(index) I get a object with custom properties:
But, I want this data:
tileset.getTileProperties(index).type returns undefined because no exists type on Custom Properties.
I understand that tileset.getTileData() should return this data info (type, imagewidth, imageheight, etc…), but I don’t undertand why tileData object is empty or if I should do something…
This type is useful for me, why Tiled allow create Object Types:
With this, I can create type collections with properties set.