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 :frowning:

Thanks everyone for the tips!! GoodLuck with coding.

I think what you want is…

whiteScreen.canvasRenderer.GetAlpha()

That will give you a number between zero and one.