- Home /
how to change color of dublicate object ?
i duplicate an object when i want to change its color from shader options it also change the color of original object.. what should i do?
Answer by robertbu · Oct 09, 2013 at 04:48 PM
You can:
Duplicate the material, change the color in the new material, apply the new material to the clone.
Change the color in script. This will cause the material to be cloned at runtime. It will revert to the original color when the game is stopped.
If you use a shader that supports vertex color and a 3D authoring program, you can supply the color as part of vertex information. You could also change the vertex colors in script.
Though it is uncommon to use, I mention #3 (vertex colors) because #1 and #2 result in new materials and therefore more drawcalls.
Your answer
Follow this Question
Related Questions
change color object 2 Answers
how to change to another object after button is pressed 1 Answer
Changing a second objects material on trigger 0 Answers
Changing character colour on code 1 Answer