# sm.terrainTile.getDecalsForCell

Returns all decals for a cell in a tile.

**Kind:** Function

**Environments:** Terrain

## Terrain

``` { .lua .api-signature }
sm.terrainTile.getDecalsForCell( tileUid, cellOffsetX, cellOffsetY )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.terrainTile.md#getdecalsforcell)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `tileUid` | [Uuid](../Terrain-Script-Environment/Userdata/Uuid.md) | The tile uuid. |
| `cellOffsetX` | integer | The cell X offset. |
| `cellOffsetY` | integer | The cell Y offset. |

**Returns:**

| Type | Description |
| --- | --- |
| table | A table \{ \{ pos = [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md), rot = [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md), scale = [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md), decalId = integer, color = [Color](../Terrain-Script-Environment/Userdata/Color.md), layer = integer, tags = \{ string, ... \} \}, ... \} of decals in the cell. |
