46
NGUI 3 Support / Re: Texture or material changes in UITexture does not propagate to _UIDrawCall
« on: December 06, 2012, 02:52:42 PM »
I don't know if this is bad practice, but I usually end up setting my UITexture's .material to a copy of the original, then any time I need to change the texture, I set .material.mainTexture instead of .mainTexture. This may just be a holdover from earlier versions of NGUI where the UITextures needed explicit materials to be set. A lot of the places where I use UITexture, I'm instantiating a prefab multiple times, and not copying the material meant updating one UITexture affected all of them.
Anyway, for Nicki's original problem, just wondering if setting friendPicture.material.mainTexture would be an easy solution.
Anyway, for Nicki's original problem, just wondering if setting friendPicture.material.mainTexture would be an easy solution.