Flatten() публичный статический Метод

public static Flatten ( TerrainData terrain, float height ) : void
terrain UnityEngine.TerrainData
height float
Результат void
Пример #1
0
 void OnWizardCreate()
 {
     Undo.RegisterCompleteObjectUndo(terrainData, "Flatten Heightmap");
     HeightmapFilters.Flatten(terrainData, height / terrainData.size.y);
 }
Пример #2
0
 private void OnWizardCreate()
 {
     Undo.RegisterCompleteObjectUndo(base.terrainData, "Flatten Heightmap");
     HeightmapFilters.Flatten(base.terrainData, this.height / base.terrainData.size.y);
 }