Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTerrainAlphaMapChecked(Terrain, int)

Returns the alphamap texture at mapIndex.
Read time 1 minuteLast updated 12 days 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.