SetTile
Sets a Tile at the given XYZ coordinates of a cell in the Tilemap.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
SetTile(Vector3Int, TileBase)
public void SetTile(Vector3Int position, TileBase tile)
Parameters
Position of the Tile on the Tilemap.
Remarks
Refer to Scriptable Tiles and Tilemap for more information.
SetTile(TileChangeData, bool)
public void SetTile(TileChangeData tileChangeData, bool ignoreLockFlags)
Parameters
The Tile with additional properties to be placed in the cell.
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.