Documentation

Unity Engine

Unity Engine

GetTerrainAlphaMapChecked(Terrain, int)

Returns the alphamap texture at mapIndex.
Read time 1 minuteLast updated 2 months ago

Definition

public static Texture2D GetTerrainAlphaMapChecked(Terrain terrain, int mapIndex)

Parameters

terrain

Terrain tile.

mapIndex

Index to retrieve.

Returns

Type

Description

Texture2DAlphamap texture at mapIndex.

Remarks

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