Returns the texture coordinates (UV in pixels) in the Tileset image for the given tile index. Returns null if tile index is not contained in this Tileset.
name | type | description |
---|---|---|
tileIndex | number |
The unique id of the tile across all tilesets in the map. |
Object in the form { x, y } representing the top-left UV coordinate within the Tileset image.