Question by
$$anonymous$$ · Oct 03, 2016 at 03:22 AM ·
change color
change color of all materials within same object
I have a script that changes color during collision, but only first material changes color. how do I switch the color of all materials within the Mesh Renderer? not sure how to combine the public Material[] materials
function in. please help. thx
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612093911im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why when i change the transparency of a prefab in runtime it change the prefab permanently?! 1 Answer
why my static timer variable print 0 everytime i call the getcolor function?! 0 Answers
transparent shader that changes color to objects behind it. 0 Answers
How to change the color of part of the plane that is directly beneath the cube? 0 Answers