TileMap.setCell

Sets the tile index for the cell given by a Vector2. An index of -1 clears the cell. Optionally, the tile can also be flipped, transposed, or given autotile coordinates. Note that data such as navigation polygons and collision shapes are not immediately updated for performance reasons. If you need these to be immediately updated, you can call updateDirtyQuadrants.

struct TileMap
@nogc nothrow
void
setCell
(
in long x
,
in long y
,
in long tile
,
in bool flip_x = false
,
in bool flip_y = false
,
in bool transpose = false
,
in Vector2 autotile_coord = Vector2(0, 0)
)

Meta