【Unity】Tilemap のタイルの数を返す拡張メソッド
ソースコード
public static int GetTilesCount( this Tilemap self ) { var cellBounds = self.cellBounds; return self.GetTilesRangeCount( cellBounds.min, cellBounds.max ); }
public static int GetTilesCount( this Tilemap self ) { var cellBounds = self.cellBounds; return self.GetTilesRangeCount( cellBounds.min, cellBounds.max ); }