Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Tilemap.SetColor

public void SetColor(Vector3Int position, Color color);

Parameters

positionPosition of the Tile on the Tilemap.
colorColor to set the tile to at the XY coordinate.

Description

Sets the color of a tile given the XYZ coordinates of a cell in the tile map.

Did you find this page useful? Please give it a rating: