I’m having a problem with a GameObject that contains 2 materials.
I’m doing the following:
renderer.sharedMaterials[ 1 ] = Resources.Load( materialPath ) as Material;
renderer.materials[ 0 ].mainTexture = Resources.Load( texturePath ) as Texture;
So i’m trying to change the 2nd material in all GameObjects but keeping it batched. This works until i change the 1st material’s mainTexture to a different one in each GameObject, after doing this the 2nd material becomes an Instance.
I would like to know if its possible to have one of the materials batch and the other be an instance.
Thank’s in advance.