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

TerrainUtility.TerrainMap.GetTerrain

Switch to Manual
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).