文档

Unity Engine


User Manual

Script Reference

Unity Engine


TerrainMap

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

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.