- Home /
Interacting with terrain trees.
Hello, Explain to me please how can i interact with trees painted with terrain editor brush. For example: how can i get tree's pos, scale, how can i attach some scripts to them and how can i destroy them. Need just some suggestions. Thanks in advance.
Comment
I'm not sure that you can interact with it, because it is just a decoration, but you can download trees here and interact with them.
Best Answer
Answer by Kiwasi · Mar 21, 2015 at 10:41 PM
You can use TerrainData.treeInstances. Interaction is limited, but there are things you can do.
Terrain trees are optimised for rendering and the like. If you want to do real detailed stuff with an individual tree you will be better off putting in an individual tree as a GameObject.