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

public void ClearAllTiles();

Description

Clears all tiles that are placed in the Tilemap.

This will also resize the Tilemap to its default values.

In the Editor, this will also clear all editor preview tiles.

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