How i can check alpha level (RGBA) an UI obj?
Hi. I create a fadeout/fadein script, how i can check alpha level an my FadeScreen? if (???) {} I want to load level after the end FadeIn script. (When alpha level = 255)
FadeIn script
 void OnMouseDown() {
      if( FadeIn ){
           whiteScreen.CrossFadeAlpha (1.0f, FadeSpeed, true);
           if( ??? ){
                SceneManager.LoadScene("Loading");
           }
      }
 }
 
                
               I experienced this condition:  if (whiteScreen.color.a < 0.1f) {}  But this did not work :(
Thanks everyone for the tips!! GoodLuck with coding.
               Comment
              
 
               
              Answer by MaxGuernseyIII · Sep 26, 2017 at 05:34 PM
I think what you want is...
 whiteScreen.canvasRenderer.GetAlpha()
 
               That will give you a number between zero and one.
Your answer