Tile library for tilemaps.
A TileSet is a library of tiles for a [TileMap]. It contains a list of tiles, each consisting of a sprite and optional collision shapes.
Tiles are referenced by a unique integer ID.
Clears all tiles.
Creates a new tile with the given ID.
Returns the first tile matching the given name.
Returns the ID following the last currently used ID, useful when creating a new tile.
Returns an array of all currently used tile IDs.
Removes the given tile ID.
Adds a shape to the tile.
Returns the tile's light occluder.
Returns the tile's material.
Returns the tile's modulation color.
Returns the tile's name.
Returns the navigation polygon of the tile.
Returns the offset of the tile's navigation polygon.
Returns the tile's normal map texture.
Returns the offset of the tile's light occluder.
Returns the tile sub-region in the texture.
Returns a tile's given shape.
Returns the number of shapes assigned to a tile.
Returns the offset of a tile's shape.
Returns the one-way collision value of a tile's shape.
Returns the [Transform2D] of a tile's sahpe.
Returns an array of the tile's shapes.
Returns the tile's texture.
Returns the texture offset of the tile.
Returns the tile's [enum TileMode].
Returns the tile's z-index (drawing layer).
Sets a light occluder for the tile.
Sets the tile's material.
Sets the tile's modulation color.
Sets the tile's name.
Sets the tile's navigation polygon.
Sets an offset for the tile's navigation polygon.
Sets the tile's normal map texture.
Sets an offset for the tile's light occluder.
Sets the tile's sub-region in the texture. This is common in texture atlases.
Sets a shape for the tile, enabling collision.
Sets the offset of a tile's shape.
Enables one-way collision on a tile's shape.
Sets a [Transform2D] on a tile's shape.
Sets an array of shapes for the tile, enabling collision.
Sets the tile's texture.
Sets the tile's texture offset.
Sets the tile's [enum TileMode].
Sets the tile's drawing index.