GetTerrainAlphaMapChecked(Terrain, int)
Returns the alphamap texture at mapIndex.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.TerrainTools
- Assembly: UnityEngine.TerrainModule
public static Texture2D GetTerrainAlphaMapChecked(Terrain terrain, int mapIndex)
Parameters
Returns
Type | Description |
|---|---|
| Texture2D | Alphamap texture at mapIndex. |
Remarks
This function will throw an exception if the map index is out of range.