The TerrainData class stores heightmaps, detail mesh positions, tree instances, and terrain texture alpha maps.
| GetHeight |
Gets the height at a certain point x,y
|
| GetInterpolatedHeight |
Gets an interpolated height at a point x,y
|
| GetHeights |
Get an array of heightmap samples..
|
| SetHeights |
Set an array of heightmap samples.
|
| GetSteepness |
Gets the gradient of the terrain at point .
|
| GetInterpolatedNormal |
Get an interpolated normal at a given location.
|
| SetDetailResolution |
/detailResolution/ specifies the number of pixels in the detail resolution map. A larger detailResolution, leads to more accurate detail object painting.
|
| RefreshPrototypes |
Reloads all the values of the available prototypes (ie, detail mesh assets) in the TerrainData Object.
|
| GetSupportedLayers |
Returns an array of all supported detail layer indices in the area.
|
| GetDetailLayer |
Returns a 2D array of the detail object density in the specific location.
|
| SetDetailLayer |
Sets the detail layer density map.
|
| GetAlphamaps |
Returns the alpha map at a position x, y given a width and height
|
| SetAlphamaps |
Assign all splat values in the given map area.
|