SetTile
Sets a Tile at the given XYZ coordinates of a cell in the Tilemap.
阅读时间1 分钟最后更新于 1 个月前
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.