TerrainData.GetSupportedLayers 获取支持的层

function GetSupportedLayers (xBase : int, yBase : int, totalWidth : int, totalHeight : int) : int[]

Description描述

Returns an array of all supported detail layer indices in the area.

返回一个在该区域所有支持的细节层索引数组。

The Terrain uses a detail layer density map. Each pixel in the map the amount of details objects that will be procedurally placed in the pixel area. The layer determines the detail prototype that will be instantiated at the location.

地形使用一个细节层密度图,在贴图中每像素细节物体数,将被程序放置在像素区域。该层确定细节原型将被实例化的位置。

最后修改:2011年3月25日 Friday 16:20

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。