Hi everyone,
I'm trying to change a property of a UITexture's material (UITexture instantiated from a prefab) using GetComponent<UITexture>().drawCall.dynamicMaterial.SetFloat(). When I have only one instance, it behaves exactly as I'd expect. However, when I instantiate more, it seems like all the instances start using the same material. I remember reading somewhere that each UITexture comes with its own internal material - I assume I'm not accessing this one? If that's the case, how would I get each instance of my prefab to change the properties of its own material?
Thanks!
rvm8i