x


Painted Tree's Script Component

When you paint trees/plants, are those trees still considered as a GameObjects?

i have a situation where i have a script inside a tree prefab, then painted it on the terrain, but during runtime, i cannot access the script because i think it doesnt count as a Gameobject anymore.

the scripts works when i manually placed the trees on the scene, but i dont want to put thousand of trees manually :(

more ▼

asked Apr 16 '10 at 05:12 AM

Albert gravatar image

Albert
323 18 19 26

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

1 answer: sort voted first

Actually no, they aren't GameObjects. The foliage information for the terrain is stored in a particular optimized array format, then the trees are created/transformed/destroyed on the fly based on the distance from the camera. The terrain system wouldn't work very effectively if the trees were like individual prefabs.

more ▼

answered Apr 16 '10 at 05:38 AM

Eric5h5 gravatar image

Eric5h5
80.1k 41 132 519

oh yea, i totally forgot about the features of terrain system like the billboards. well, thanks for the quick answer Eric :)

Apr 16 '10 at 06:26 AM Albert
(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:

x3320
x302
x228
x151
x2

asked: Apr 16 '10 at 05:12 AM

Seen: 1444 times

Last Updated: Apr 16 '10 at 05:12 AM