Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DeleteCells

Removes cells from within the Tilemap 's bounds.
Read time 1 minuteLast updated 6 days ago

Definition

DeleteCells(Vector3Int, Vector3Int)

Removes cells from within the Tilemap's bounds.
public void DeleteCells(Vector3Int position, Vector3Int deleteCells)

Parameters

position

The target position to remove from.

deleteCells

The number of columns, rows and layers of cells to remove.

DeleteCells(Vector3Int, int, int, int)

Removes cells from within the Tilemap's bounds.
public void DeleteCells(Vector3Int position, int numColumns, int numRows, int numLayers)

Parameters

position

Target position to delete from.

numColumns

The number of columns to remove.

numRows

The number of rows to remove.

numLayers

The number of layers of cells to remove.