Combined Mesh - Access to materials?

Hi,

i´ve got a scene in which i colorize a material of an instantiated gameobject.

car = Instantiate(Resources.Load(carArray[carNumber], GameObject));
meshRenderer = car.GetComponentsInChildren(MeshRenderer);

If i´m searching for:

if(meshArray.renderer.material.name == "layerMat (Instance)")

It works fine on the whole model when the “Combine Children”-script isn´t active.
If i activate the “c.c.”-script, all the meshes are combined but the materialname won´t be found. Therefore nothing happend.

if(meshArray.renderer.material.name == "layerMat")

So how can i access the materials of combined meshes?

I think you cant access each material when the mesh is combined :S.

What I do think you can do is to access the whole material of the combined mesh.

Yeah, right… That´s the thing but i don´t know how do to it…

Hope somebody know it…Thanks for your help