Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
TileMap¶
Inherits: Node2D < CanvasItem < Node < Object
Node for 2D tile-based maps.
Description¶
Node for 2D tile-based maps. Tilemaps use a TileSet which contain a list of tiles which are used to create grid-based maps. A TileMap may have several layers, layouting tiles on top of each other.
For performance reasons, all TileMap updates are batched at the end of a frame. Notably, this means that scene tiles from a TileSetScenesCollectionSource may be initialized after their parent.
To force an update earlier on, call update_internals.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
Methods¶
void |
_tile_data_runtime_update ( int layer, Vector2i coords, TileData tile_data ) virtual |
_use_tile_data_runtime_update ( int layer, Vector2i coords ) virtual |
|
void |
|
void |
clear ( ) |
void |
clear_layer ( int layer ) |
void |
erase_cell ( int layer, Vector2i coords ) |
void |
|
void |
force_update ( int layer=-1 ) |
get_cell_alternative_tile ( int layer, Vector2i coords, bool use_proxies=false ) const |
|
get_cell_atlas_coords ( int layer, Vector2i coords, bool use_proxies=false ) const |
|
get_cell_source_id ( int layer, Vector2i coords, bool use_proxies=false ) const |
|
get_cell_tile_data ( int layer, Vector2i coords, bool use_proxies=false ) const |
|
get_coords_for_body_rid ( RID body ) |
|
get_layer_for_body_rid ( RID body ) |
|
get_layer_modulate ( int layer ) const |
|
get_layer_name ( int layer ) const |
|
get_layer_navigation_map ( int layer ) const |
|
get_layer_y_sort_origin ( int layer ) const |
|