x


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?

more ▼

asked Dec 26 '11 at 07:19 PM

superventure gravatar image

superventure
649 44 54 63

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Terrain trees are no real game objects and they don't spawn prefabs, thats why adding stuff on them is meaningless,

more ▼

answered Dec 27 '11 at 10:54 AM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1677
x1478
x189
x140
x32

asked: Dec 26 '11 at 07:19 PM

Seen: 686 times

Last Updated: Dec 27 '11 at 10:54 AM