文档

Unity Engine

Unity Engine

GetTerrainAlphaMapChecked(Terrain, int)

Returns the alphamap texture at mapIndex.
阅读时间1 分钟最后更新于 1 个月前

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.