UnityEngine.TerrainData.GetAlphamaps C# (CSharp) Method

GetAlphamaps() private method

private GetAlphamaps ( int x, int y, int width, int height ) : float[,,]
x int
y int
width int
height int
return float[,,]
        public extern float[,,] GetAlphamaps(int x, int y, int width, int height);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

コード例 #1
0
 private static TextureData GetTerrainTextures(TerrainData terrainData)
 {
     return new TextureData
            {
                SplatMaps = terrainData.GetAlphamaps(0, 0, terrainData.alphamapWidth, terrainData.alphamapHeight),
                ControlTextureResolution = terrainData.alphamapResolution
            };
 }
All Usage Examples Of UnityEngine.TerrainData::GetAlphamaps