ドキュメント

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.