# GetUsedTilesCount()

> Gets the total number of different Tile s used in the Tilemap.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.5/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

```csharp
public int GetUsedTilesCount()
```

### Returns

| Type                                                       | Description                                                                                                                                                                            |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The total number of different [Tile](/engine/6000.5/script-reference/unityengine/wsa/tile.md)s used in the [Tilemap](/engine/6000.5/script-reference/unityengine/tilemaps/tilemap.md). |
