- Home /
how to make tree or bush varieties
Hi,
I made a bush using tree creator, and I would like to make a similar bush except have different colored leaves. I found that if I put several instances of the same bush in my scene and I try to change the leaves on one of them by making a new material with a different texture that, of course, all the bushes change to the new texture.
I also tried exporting the bush and reimporting it, thinking I could apply a different texture/material to the newly imported bush, but the import didn't work because all assets were already present.
Is there some way to make a duplicate of a bush or tree I made in tree creator and apply different leaves to it? Thanks.
Zaffer
Answer by Zaffer · Feb 26, 2011 at 03:20 AM
Hi,
I found the answer in a post on the Unity forum by Iasco: http://forum.unity3d.com/threads/78582-How-to-copy-not-clone-a-Tree-Creator-tree?highlight=duplicate+tree
1/ select your tree called "tree" and duplicate it in the project list (of course not in Hierarchy tab), you get "tree 1" 2/ Now develop the prefab of this new tree and select "Tree data" 3/ You see in the inspector that the first line is called "Unique ID" : the number is the same than your first tree. 4/ Enter any other number there. You'll see that now when you change this "tree 1" it won't affect "tree".
I tried this and it works. I was able to duplicate a bush and give it different leaves by changing the Unique ID in the Tree Data for the second bush. Thanks Iasco!
Zaffer
Your answer
![](https://koobas.hobune.stream/wayback/20220613110111im_/https://answers.unity.com/themes/thub/images/avi.jpg)