How to know when RawImage.CrossFadeAlpha() finished
Im working in a intro scene and i want to know when a CrossfadeAlpha is finished. The thing is that at the Game tab the logo variable fades out but the alpha color property doesn't go to 0.
I have this code:
if (logo.GetComponent<RawImage> ().color.a <= 0) {
readyForMenu = true;
}
StartCoroutine (waitSeen ());
if (seen && !readyForMenu) {
info.GetComponent<Text> ().CrossFadeAlpha (0, 1, true);
copyright.GetComponent<Text> ().CrossFadeAlpha (0, 1, true);
logo.GetComponent<RawImage> ().CrossFadeAlpha (0, 1, true);
}
I want to check it to instanciate another graphics elements and this issue is making me crazy.
I'm Reading you, Best regards. (Sorry for my bad english.)
Comment