I would like to be able to use the select area mouse drag and on mouse up change the height of the selected area. The Map Editor circle tool works ok, but to draw a straight line is a real pain. I have been able to capture the area but I cannot figure out how to update the areas height.
Crediting the authors of Skyline Bulldozer and Editor Terraform Tool for the base,
Current attempt to set the area was to use SetHeights, But Terrain object in null after Get Component call.
Terrain terrain;
TerrainData tData;
terrain = this.gameObject.GetComponent<Terrain>();
tData = terrain.terrainData;
tData.SetHeights(0, 0, heights);
Crediting the authors of Skyline Bulldozer and Editor Terraform Tool for the base,
Current attempt to set the area was to use SetHeights, But Terrain object in null after Get Component call.
Terrain terrain;
TerrainData tData;
terrain = this.gameObject.GetComponent<Terrain>();
tData = terrain.terrainData;
tData.SetHeights(0, 0, heights);