- Home /
Question by
HuskyPanda213 · Apr 06, 2014 at 03:24 PM ·
terrainruntimetrees
How do you add/remove terrain trees during gameplay?
I need some help, how do I add/remove/edit terrain trees during runtime? Whenever I try accessing the TreeInstances[] and edit, nothing happens(I do not know why). Another thing is, is it expensive to add/remove terrain trees at runtime? Thanks in advance!!!
Comment
Answer by getyour411 · Apr 06, 2014 at 03:27 PM
See this
http://answers.unity3d.com/questions/650308/how-do-i-interact-with-terrain-trees.html
which is written to answer how do I 'interact' with trees but it shows the Tree structures involved; at the bottom in the Comments sections are additional links with examples of modifying tree data at runtime which is an expensive operation for most configs.