文档

Unity Engine

Unity Engine

FloodFill(GridLayout, GameObject, Vector3Int)

Flood fills data onto a grid given the starting coordinates of the cell.
阅读时间1 分钟最后更新于 1 个月前

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.