- Home /
Adding trees dynamically - part 2 (the mission)
Can somebody show me an example code of how to put trees to the terrainData choosing the position and the type of tree?
Answer by TaigaStudios · Jul 03, 2010 at 11:45 AM
I would recommend using the built in terrain options in Unity (Terrain -> create terrain -> Mass place trees) for putting the trees yourself. You can edit settings for the size of the trees and do lots of randomizing so the trees wont look the same.
And ofcourse check thisTerrainToolKit and watch the tutorial how to use it.
-----Edited-------
I hope this example for loading information of a xml file suits your needs Unity3d Forums
I already know how to use the terrain editor, my problem is that I have to populate the terrain with trees based on a xml who will deter$$anonymous$$e the type and position of the trees, got it? Thank you anyway for your help.