Version: 2018.1

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.