Version: 2022.2

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.