TileSetExtensions extension

Extension functions on TileSet

on
  • TileSet

Properties

offset → Vector2
Creates an Offset from tileOffset
no setter
tileSize → Vector2
no setter

Methods

getTileOffset(int tileIndex) → Vector2
Calculates the Offset needed to extract the correct tile from the TileSet