Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Erase(GridLayout, GameObject, Vector3Int)

Erases data on a grid within the given bounds.
Read time 1 minuteLast updated 4 days ago

Definition

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

Parameters

gridLayout

Grid used for layout.

brushTarget

Target of the erase operation. By default the currently selected GameObject.

position

The coordinates of the cell to erase data from.