- Home /
How to create a duplicate and change a prefab
I have a car prefab and I want to duplicate it and change the color of the material but whenever I do it changes the other cars color as well. How can I duplicate the car prefab and change only it's color?
Thanks.
Answer by Stratosome · Aug 13, 2018 at 03:42 AM
The problem is that even if you duplicate the car prefab, both cars are using the one material, so any changes to that material will apply to both cars. You will want to make a material for each car prefab if you want to do this.
I was worried that would be the case. I think I can work around this although would have preferred not to. Thanks
Yeah, unfortunately it isn't the most convenient thing always, but it makes sense why it is made this way.
Your answer
Follow this Question
Related Questions
Modifying scene objects programatically references prefab 1 Answer
Troubles instatiating a gameobject with rotation 0 Answers
Any easy way how to stick many blocks of prefabs one beside the other? 1 Answer
Update prefab instance with local values (Editor Script) 0 Answers
Instantiating object with transform.rotation not working? 0 Answers