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.FloodFill

public void FloodFill(Vector3Int position, Tilemaps.TileBase tile);

Parameters

positionStart position of the flood fill on the Tilemap.
tile Tile to place.

Description

Does a flood fill with the given tile to place. on the tile map starting from the given coordinates.

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