Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetTile

Sets a Tile at the given XYZ coordinates of a cell in the Tilemap.
Read time 1 minuteLast updated 4 days ago

Definition

SetTile(Vector3Int, TileBase)

Sets a Tile at the given XYZ coordinates of a cell in the Tilemap.
public void SetTile(Vector3Int position, TileBase tile)

Parameters

position

Position of the Tile on the Tilemap.

The Tile to be placed in the cell.

Remarks

Refer to Scriptable Tiles and Tilemap for more information.

SetTile(TileChangeData, bool)

Sets a Tile with additional properties at the given XYZ coordinates of a cell in the Tilemap.
public void SetTile(TileChangeData tileChangeData, bool ignoreLockFlags)

Parameters

tileChangeData

The Tile with additional properties to be placed in the cell.

ignoreLockFlags

Whether to ignore Lock Flags set in the Tile's TileFlags when applying Color and Transform changes from TileChangeData.

Remarks

Refer to Scriptable Tiles and Tilemap for more information.