文档

Unity Engine

Unity Engine

TerrainMap

Type for mapping 2D (X,Z) tile coordinates to a Terrain object.
阅读时间1 分钟最后更新于 1 天前

Definition

public class TerrainMap

Properties

Property

Description

terrainTilesMapping from TileCoord 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.