Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ssc.mikey

Pages: [1]
1
NGUI 3 Support / tweenalpha.toggle
« on: March 10, 2014, 02:04:13 PM »
I have successfully tried to access alpha from my code by creating a UIWidget name; and change its value by name.alpha = 1f; and it all works but it creates me one problem as on click i notify a game object and call TweenAlpha.Toggle where i kind of fade out my sprite. When i change the alpha of my sprite from my code it gets back to 1 but when i click button and notify same object again it doesnt work properly as it fade in by itself. So i am looking for a way to run TweenAlpha.Toggle back to fade in so it works like you have clicked the same button again. Thank you in advice

2
NGUI 3 Support / Re: changing alpha from code
« on: March 10, 2014, 10:28:31 AM »
nice. thank you it works. just wonder how would you access tweenalpha.toggle function as now it jumps straight to one and i would like it to be smooth tweening from .5f to 1.

3
NGUI 3 Support / changing alpha from code
« on: March 10, 2014, 08:29:22 AM »
Hi. I would like to see how can i access and change the alpha of sprite during the runtime from my code. As i change the alpha to 0.5f on click i need to change it back to 1 when some event is fired.
Thank you in advance  ;) ;) ;)

Pages: [1]