# GetTilesBlock(BoundsInt)

> Retrieves an array of Tiles with the given bounds.

## Definition

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

```csharp
public TileBase[] GetTilesBlock(BoundsInt bounds)
```

### Parameters

**** (\[BoundsInt]\(/engine/6000.7/script-reference/unityengine/boundsint)): The bounds to retrieve from.

### Returns

| Type                                                                             | Description                                                                                             |
| -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [TileBase\[\]](/engine/6000.7/script-reference/unityengine/tilemaps/tilebase.md) | The array of [Tile](/engine/6000.7/script-reference/unityengine/tilemaps/tile.md)s at the given bounds. |

### Remarks

This is meant for more a performant way to get Tiles as a batch, when compared to calling [Tilemap.GetTile](/engine/6000.7/script-reference/unityengine/tilemaps/tilemap/gettile.md) for every single position. The bounds size must match the array size. For example bounds of 1x2x3 needs an array length of 6.

### Examples

```csharp
 // Retrieves all Tiles from an area on the Tilemap and prints out the Tiles to console
using UnityEngine;
using UnityEngine.Tilemaps;

public class ExampleClass : MonoBehaviour
{
    public BoundsInt area;

    void Start()
    {
        Tilemap tilemap = GetComponent<Tilemap>();
        TileBase[] tileArray = tilemap.GetTilesBlock(area);
        for (int index = 0; index < tileArray.Length; index++)
        {
            print(tileArray[index]);
        }
    }
}
```
