- Home /
How to make every tree different?
First of all sorry for my bad English;-)
I created a tree with Unity 3D Tree creator and copied it 20 times. Now I would like to make each tree different. For example by changing the 'Growth Scale' or 'Leaf Frequency'. But if I change the values from one tree, it happens to all the trees. How can I make each tree a 'stand-alone' tree?
Thanks! Jordy
Answer by myjean17 · Feb 02, 2012 at 05:34 PM
Duplicate the tree in the project view and change each individual tree. When you change one they all change because they are all tied together with that prefab. You'll need a separate prefab for each separate tree.
-myjean17
Thanks for your reply. I'm a really noob in Unity3D. So what should I do now? I copied the trees and now I have around 20 'Tree 2' in the Hierarchy. At the right I can see Prefab:Select - Revert - Apply. And now?
Thanks!;-)
You should be able to drag each prefab into the scene view and edit each separately. Whatever you change will be specific to the prefab it is connected to so you may want to rename them.
Oh, and make sure you duplicate them in the project view. You said 'Hierarchy' above and i just wanted to make sure. The hierarchy contains everything thats in the present scene, while the project view contains every asset that is in your project folder, which can be used in every scene as much as you want. If your new to unity it may help looking into this if you haven't already:
http://unity3d.com/support/documentation/
or this for some good tutorials:
Thanks, in the Hierarchy I clicked the Prefab:Select button, and then the Tree 2 is selected in the Project folder. Should I copy it so that it appears for 20 times in the Project folder?
But that has nothing to do with the prefab. Hmm, sorry, hope you can help me. I'm noov:D
Yes- the tree in the project panel is the prefab. The one in the scene is just a copy of that prefab. As long as it's connected to the prefab, anything that happens to it happens to the prefab. What you want to do is, like you said, copy it 20 times in the project panel. Then you have 20 different prefabs with different attributes.
Your answer
Follow this Question
Related Questions
How do I make the all the leaves face one way ? 0 Answers
TreeCreator Shader is messed up (see picture). Why? 1 Answer
RenderTexture lacks quality , Trees have a grey outline against the night sky 0 Answers
Messed up Trees in only my scene (not new scene) 1 Answer
Tree Creator Shader will not fade 0 Answers