Unity

[Unity] Canvas Fade 쉽게 하기

Guk-blog 2019. 8. 6. 12:37
728x90
반응형
foreach (Image img in images)
        {
            img.CrossFadeAlpha(1f, 1f, false);
        }

fade out

 

img.GetComponent<CanvasRenderer>().SetAlpha(0.1f);
                img.CrossFadeAlpha(1f, 0.5f, false);

fade in

728x90
반응형