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 bitmask info 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 TileSet.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 TileSet.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 info 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 TileSet.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 TileSet.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 info 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 TileSet.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 TileSet.TileMode]. Sets the tile's drawing index.