Question by
Mairt00 · Dec 22, 2017 at 12:11 PM ·
material colormaterialpropertyblock
How can I change an objects color without duplicating its material
I am creating a bunch of cars. I want to randomize the color of each car without Unity creating a new material for each new car.
Now I have tried to use the MaterialPropertyBlock. Which would work great, but its actually changes all the materials attached to the cars the same color, including the glass and as far as I know there is no way to access sub-mesh or single out a material.
Is there a common work around or practice for this?
Comment