I been working in seting up a unity terrain from script. everything was ok unitl i try setting the heights for the terrain.
As far as i can tell the code looks fine. It makes sence and i get no errors. But still when i run the programm my terrain size get abruptly rescaled. It goes from a size of say 2048 (terrain size) to something like 67000x67000 (i don’t remember exactly) but was a lot. The point is that i don’t alter the size during the execution of the terrain generation script.
Since there are lot of people that allready have done this i was wondering if someone can point out what could cause this to happen?
By the way the heights are not apply either. the new big terrain is flat.
Everything else was working fine so i bet it has something to do with setheights or the procedure involved.
Any thoughts?