Version: 2021.3

Tilemap.GetUsedTilesCount

切换到手册
public int GetUsedTilesCount ();

返回

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

描述

Gets the total number of different Tiles used in the Tilemap.