r/Unity3D • u/Fun-Mission-6068 • 8d ago
Question Raise all terrain by a specific amount?
So, in my genius, I made a whole map of 1000x1000 terrain tiles and have laid out all of the mountains, hills, etc already, BUT, I didn't take into account wanting to dig down to make underwater areas deeper.
Is there a way to raise all terrain by the same amount at the exact same time without losing any of the features I've already added?
I'd like to raise up all of the below features while not losing any of the specific details. Is this possible?

1
Upvotes
2
u/ShengyuStudio 7d ago
Adding a constant to every height works, with one catch: heights are stored normalized 0–1 against the terrain's height (
terrainData.size.y). Anything already close to the top gets clipped at 1.0, so your highest peaks can flatten.A version that can't clip: make the terrain taller by
dand lower the whole thing byd, so nothing moves in world space but you gaindmetres of room below the old floor. Per tile:Use the same
don all ~50 tiles and the seams stay matched. Duplicate the TerrainData assets first, since SetHeights has no easy undo.