Hello, I was wondering if there is a way to create tree objects for terrains with scripts attached to the trees so that the trees can behave a certain way. Thank you for any information. Sincerely, Michael S. Lowe
Place a tree in the scene. Add the script you wish to the tree. Create a new prefab and name it as you wish. Drag the tree from the scene (with the script) to the prefab. Now put that prefab in the Tree section of Terrain and try. I hope it works
you might be interested in the tree "megathread" http://forum.unity3d.com/threads/using-tree-gameobjects-vs-unitys-built-in-system.183224/
Scripts on your tree prefabs will not work using the terrain system. I'm pretty sure the whole terrain draws the tree meshes using Graphics.DrawMesh() it's not an actual object so any scripts you put on them won't be called by the engine.