|
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 :(
(comments are locked)
|
|
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. 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)
|
