Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: luisdiv on November 27, 2012, 12:50:37 PM

Title: Button disappears after hover
Post by: luisdiv on November 27, 2012, 12:50:37 PM
Hello again,

I've animated some buttons to enter screen by fading in with a TweenColor component. They come in without any problem. If I hover over them, a TweenColor component is automatically added to the child Background for the event. The problem is that if after hovering over the button it fades out to 0 alpha.

If I deactivate the TweenColor component from the parent button solves the problem, but destroying the component after the animation doesn't. Still, I'd like to keep the animation. What would be the supposed solution? Or maybe I'm doing something wrong..?

Thanks!

PD. I'm still using the free version
Title: Re: Button disappears after hover
Post by: JRoch on November 27, 2012, 02:43:47 PM
So do some event handling of your own and write the correct alpha value to the control?
Title: Re: Button disappears after hover
Post by: ArenMook on November 28, 2012, 01:57:55 AM
I generally don't recommend tweening alpha / color of anything individually in order to fade them in. Either use UIPanelAlpha, or consider a different way of fading them in -- such as via an animation that scales or moves them in.
Title: Re: Button disappears after hover
Post by: luisdiv on November 28, 2012, 10:29:00 AM
Thanks again!