文档

Unity Engine

Unity Engine

GetTerrain(int, int)

Retrieves the Terrain object corresponding to the tile coordinates (tileX,tileZ).
阅读时间1 分钟最后更新于 1 个月前

Definition

public Terrain GetTerrain(int tileX, int tileZ)

Parameters

tileX

Tile X coordinate.

tileZ

Tile Z coordinate.

Returns

Type

Description

TerrainReturns a valid Terrain object if successful, null otherwise.