- Home /
Unity UI crossfadealpha only fades on mousehover
Hey guys,
Im trying to fade this button when i click it. But for some reason it wil only fade if i keep my mouse on it.
If it is faded and i move my mouse it pops back up.
this is the code i use to fade the button.
Playbutton.GetComponent<Image>().CrossFadeAlpha(0.0f,2.0f,false);
Any ideas?
Thanks in advance!
Comment