-
Notifications
You must be signed in to change notification settings - Fork 0
class_tileset
####Inherits: Resource ####Category: Core
Tile library for tilemaps.
- void create_tile ( int id )
- void tile_set_name ( int id, String name )
- String tile_get_name ( int id ) const
- void tile_set_texture ( int id, Texture texture )
- Texture tile_get_texture ( int id ) const
- void tile_set_material ( int id, CanvasItemMaterial material )
- CanvasItemMaterial tile_get_material ( int id ) const
- void tile_set_texture_offset ( int id, Vector2 texture_offset )
- Vector2 tile_get_texture_offset ( int id ) const
- void tile_set_shape_offset ( int id, Vector2 shape_offset )
- Vector2 tile_get_shape_offset ( int id ) const
- void tile_set_region ( int id, Rect2 region )
- Rect2 tile_get_region ( int id ) const
- void tile_set_shape ( int id, Shape2D shape )
- Shape2D tile_get_shape ( int id ) const
- void tile_set_shapes ( int id, Array shapes )
- Array tile_get_shapes ( int id ) const
- void tile_set_navigation_polygon ( int id, NavigationPolygon navigation_polygon )
- NavigationPolygon tile_get_navigation_polygon ( int id ) const
- void tile_set_navigation_polygon_offset ( int id, Vector2 navigation_polygon_offset )
- Vector2 tile_get_navigation_polygon_offset ( int id ) const
- void tile_set_light_occluder ( int id, OccluderPolygon2D light_occluder )
- OccluderPolygon2D tile_get_light_occluder ( int id ) const
- void tile_set_occluder_offset ( int id, Vector2 occluder_offset )
- Vector2 tile_get_occluder_offset ( int id ) const
- void remove_tile ( int id )
- void clear ( )
- int get_last_unused_tile_id ( ) const
- int find_tile_by_name ( String name ) const
- Array get_tiles_ids ( ) const
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.
- void create_tile ( int id )
Create a new tile, the ID must be specified.
Set the name of a tile, for decriptive purposes.
Return the name of a tile, for decriptive purposes.
Set the texture of the tile.
Return the texture of the tile.
Set the tile sub-region in the texture. This is common in texture atlases.
Return the tile sub-region in the texture. This is common in texture atlases.
Set a shape for the tile, enabling physics to collide it.
Return the shape of the tile.
- void remove_tile ( int id )
Remove a tile, by integer id.
- void clear ( )
Clear all tiles.
- int get_last_unused_tile_id ( ) const
Find an empty id for creating a new tile.
Find the first tile with the given name.