- Home /
Question by
patrico91 · Sep 24, 2012 at 09:02 PM ·
javascripteditorterrain
Edit terrain using js
If i edit terrain using
terrain.terrainData.SetHeights(0, 0, heights);
terrain.activeTerrain.AddTreeInstance(tempInstance);
And i stop the game, all modifications are in the editor. How do the changes were only in the game.
Comment
Answer by T27M · Sep 24, 2012 at 09:21 PM
I believe this only renders the terrain data in the game, say if you wanted to dig within the game you could use that method. If you want to set the heights you can use a height map. You can also edit the the terrain from the inspector.
Your answer
Follow this Question
Related Questions
Curvy Shapes in Unity Terrain editor? 1 Answer
merge scene in the editor 3 Answers
A node in a childnode? 1 Answer
Unity Terrain button wont show up. 1 Answer
Making changes to a terrian in game 1 Answer