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.
Determines when the auto-tiler should consider two different auto-tile IDs to be bound together.
[b]Note:[/b] [code]neighbor_id[/code] will be [code]-1[/code] ([constant TileMap.INVALID_CELL]) when checking a tile against an empty neighbor tile.
Clears all bitmask information of the autotile.
Returns the bitmask of the subtile from an autotile given its coordinates.
The value is the sum of the values in [enum AutotileBindings] present in the subtile (e.g. a value of 5 means the bitmask has bindings in both the top left and top right).
Returns the [enum BitmaskMode] of the autotile.
Returns the subtile that's being used as an icon in an atlas/autotile given its coordinates.
The subtile defined as the icon will be used as a fallback when the atlas/autotile's bitmask information is incomplete. It will also be used to represent it in the TileSet editor.
Returns the light occluder of the subtile from an atlas/autotile given its coordinates.
Returns the navigation polygon of the subtile from an atlas/autotile given its coordinates.
Returns the size of the subtiles in an atlas/autotile.
Returns the spacing between subtiles of the atlas/autotile.
Returns the priority of the subtile from an autotile given its coordinates.
When more than one subtile has the same bitmask value, one of them will be picked randomly for drawing. Its priority will define how often it will be picked.
Returns the drawing index of the subtile from an atlas/autotile given its coordinates.
Sets the bitmask of the subtile from an autotile given its coordinates.
The value is the sum of the values in [enum AutotileBindings] present in the subtile (e.g. a value of 5 means the bitmask has bindings in both the top left and top right).
Sets the [enum BitmaskMode] of the autotile.
Sets the subtile that will be used as an icon in an atlas/autotile given its coordinates.
The subtile defined as the icon will be used as a fallback when the atlas/autotile's bitmask information is incomplete. It will also be used to represent it in the TileSet editor.
Sets the light occluder of the subtile from an atlas/autotile given its coordinates.
Sets the navigation polygon of the subtile from an atlas/autotile given its coordinates.
Sets the size of the subtiles in an atlas/autotile.
Sets the spacing between subtiles of the atlas/autotile.
Sets the priority of the subtile from an autotile given its coordinates.
When more than one subtile has the same bitmask value, one of them will be picked randomly for drawing. Its priority will define how often it will be picked.
Sets the drawing index of the subtile from an atlas/autotile given its coordinates.
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 shape.
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.
[b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. See [url=http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for a comparison of normal map coordinates expected by popular engines.
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.