LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Tilemap.GetUsedTilesCount

public int GetUsedTilesCount();

Returns

int The total number of different tiles used in the Tilemap.

Description

Get the total number of different tiles used in the Tilemap.