- Home /
Scripts on tree prefab don't respond?
I made a tree prefab with a script that tells it to fade out when it's too close to the camera. It works when I simply pull the prefab onto the terrain, but not when I load the tree into the terrain editor, and paint them to the terrain. Why is this? I like where I have placed my trees using the terrain editor- I just want them to fade out when/if there in they're blocking my view. Is there a way to still accomplish this with the terrain editor?
Answer by Dreamora · Dec 27, 2011 at 10:54 AM
Terrain trees are no real game objects and they don't spawn prefabs, thats why adding stuff on them is meaningless,
Your answer
![](https://koobas.hobune.stream/wayback/20220613062410im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Where are my trees? 1 Answer
Tree color variation 0 Answers
How do I export blender tree model into Unity3D? 2 Answers
Tree 'Fade Length' Not Working as Expected... 1 Answer
Terrain Object Distance 1 Answer