# sm.terrainGeneration.setTempData

Sets temporary data produced from terrain generation.

**Kind:** Function

**Environments:** Terrain

## Terrain

``` { .lua .api-signature }
sm.terrainGeneration.setTempData( key, data )
```

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

 

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `key` | any | Key used to lookup the saved data. |
| `data` | any | Data to save. |
