• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Anotherdad

Private
14 Badges
May 14, 2015
11
0
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Cities: Skylines Deluxe Edition
  • Stellaris
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);