1
NGUI 3 Support / Changing texture at UITexture resets alpha to 1 (after update to 3.8.0)
« on: March 11, 2015, 03:15:30 AM »
Hi
I have a character preview in my game I am changing texture every 3 secs. I first lower the alpha (UIWidget.color.a) by lerp), than flip texture and than lerp alpha to 1. It worked all fine before updating NGUI from 3.0+ to 3.8.0. Now in the moment of switching texture the alpha is reset to 1 (just alpha r.g.b remains the same) which creates an unpleasant effect because next just after that my lerp takes control from 0-1 so I have texture appearing just for a frame. I am changing texture using UITexture.mainTexture =. Any ideas what can be causing this problem and how to tackle it ?
Thanks in Advance.
I have a character preview in my game I am changing texture every 3 secs. I first lower the alpha (UIWidget.color.a) by lerp), than flip texture and than lerp alpha to 1. It worked all fine before updating NGUI from 3.0+ to 3.8.0. Now in the moment of switching texture the alpha is reset to 1 (just alpha r.g.b remains the same) which creates an unpleasant effect because next just after that my lerp takes control from 0-1 so I have texture appearing just for a frame. I am changing texture using UITexture.mainTexture =. Any ideas what can be causing this problem and how to tackle it ?
Thanks in Advance.
