Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TerrainMap

Type for mapping 2D (X,Z) tile coordinates to a Terrain object.
Read time 1 minuteLast updated 6 days ago

Definition

public class TerrainMap

Properties

Property

Description

terrainTilesMapping from TerrainTileCoord to Terrain.

Methods

Method

Description

GetTerrainRetrieves the Terrain object corresponding to the tile coordinates (tileX,tileZ).

Static Methods

Method

Description

CreateFromConnectedNeighborsCreates a TerrainMap from the neighbors connected to the origin Terrain.
CreateFromPlacementCreates a TerrainMap from the positions of all active Terrains.