Version: 2017.2

Tilemap.GetUsedTilesCount

Switch to Manual
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.