Hello every one.
I need to add a color mask to a set of gameobjects. I tried adding a mesh filter and mesh renderer and changing color using gameobject.rendere.material.color but this way i can only change the color of the parent object.
How can I define a global mask color for the total hierarchy?
thank you all.
if they all have the same material you do it by using .sharedMaterial instead of .material (which creates a new instance).