TerrainData
- alphamapHeight
- alphamapLayers
- alphamapResolution
- alphamapWidth
- baseMapResolution
- detailHeight
- detailPrototypes
- detailResolution
- detailWidth
- GetAlphamaps
- GetDetailLayer
- GetHeights
- GetHeight
- GetInterpolatedHeight
- GetInterpolatedNormal
- GetSteepness
- GetSupportedLayers
- heightmapHeight
- heightmapResolution
- heightmapScale
- heightmapWidth
- RefreshPrototypes
- SetAlphamaps
- SetDetailLayer
- SetDetailResolution
- SetHeights
- size
- splatPrototypes
- treeInstances
- treePrototypes
- wavingGrassAmount
- wavingGrassSpeed
- wavingGrassStrength
- wavingGrassTint
TerrainData.GetDetailLayer 获取细节层
function GetDetailLayer (xBase : int, yBase : int, width : int, height : int, layer : int) : int[,]
Description描述
Returns a 2D array of the detail object density in the specific location.
在指定的位置,返回一个细节物体密度的2D数组。
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:24