Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FloodFill(GridLayout, GameObject, Vector3Int)

Flood fills data onto a grid given the starting coordinates of the cell.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TilemapModule
public virtual void FloodFill(GridLayout gridLayout, GameObject brushTarget, Vector3Int position)

Parameters

gridLayout

Grid used for layout.

brushTarget

Targets of flood fill operation. By default the currently selected GameObject.

position

Starting position of the flood fill.

Remarks

Flood fill all the cells that are logically connected with the starting position.