TerrainPaintUtility.GetTerrainAlphaMapChecked

Declaration

public static Texture2D GetTerrainAlphaMapChecked(Terrain terrain, int mapIndex);

Parameters

terrain Terrain tile.
mapIndex Index to retrieve.

Returns

Texture2D Alphamap texture at mapIndex.

Description

Returns the alphamap texture at mapIndex.

This function will throw an exception if the map index is out of range.


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