I have an issue here and I cant pinpoint what Im doing wrong. Maybe you can help.
I have a bunch of materials that I preload the textures based on if Im mobile or not (4K vs 2K). I search by tag to get the global material and replace the texture with the right one.
Then, in the app, I will change the material on a sphere. To achieve that I have a materialswitcher script that contain an array of material assets.
But it seems that the material array as is own copy of materials instead of referencing the global material?
Global material seem to have the right texture, but the array material stil point on the old one?
Can I have an array of material references?