This version of Unity is unsupported.
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

tileX Tile X coordinate.
tileZ Tile 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).