Inherits: Resource < RefCounted < Object
Holds a pattern to be copied from or pasted into TileMaps.
This resource holds a set of cells to help bulk manipulations of TileMap.
A pattern always start at the (0,0) coordinates and cannot have cells with negative coordinates.
get_cell_alternative_tile ( Vector2i coords ) const | |
get_cell_atlas_coords ( Vector2i coords ) const | |
get_cell_source_id ( Vector2i coords ) const | |
get_size ( ) const | |
get_used_cells ( ) const | |
is_empty ( ) const | |
void | remove_cell ( Vector2i coords, bool update_size ) |
void | set_cell ( Vector2i coords, int source_id=-1, Vector2i atlas_coords=Vector2i(-1, -1), int alternative_tile=-1 ) |
void |
Returns the tile alternative ID of the cell at coords.
Returns the tile atlas coordinates ID of the cell at coords.
Returns the tile source ID of the cell at coords.
Returns the size, in cells, of the pattern.
Returns the list of used cell coordinates in the pattern.
Returns whether the pattern has a tile at the given coordinates.
Returns whether the pattern is empty or not.
Remove the cell at the given coordinates.
Sets the tile identifiers for the cell at coordinates coords. See TileMap.set_cell.
Sets the size of the pattern.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_tilemappattern.html