Experimental: this API is experimental and might be changed or removed in the future.

TerrainUtility.TerrainMap.GetTerrain

public Terrain GetTerrain(int tileX, int tileZ);

Parameters

tileXTile X coordinate.
tileZTile Z coordinate.

Returns

Terrain Returns a valid Terrain object if successful, null otherwise.

Description

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

Did you find this page useful? Please give it a rating: