TerrainMap
Type for mapping 2D (X,Z) tile coordinates to a Terrain object.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.TerrainUtils
- Assembly: UnityEngine.TerrainModule
public class TerrainMap
Properties
Property | Description |
|---|---|
| terrainTiles | Mapping from TerrainTileCoord to Terrain. |
Methods
Method | Description |
|---|---|
| GetTerrain | Retrieves the Terrain object corresponding to the tile coordinates (tileX,tileZ). |
Static Methods
Method | Description |
|---|---|
| CreateFromConnectedNeighbors | Creates a TerrainMap from the neighbors connected to the origin Terrain. |
| CreateFromPlacement | Creates a TerrainMap from the positions of all active Terrains. |