Image alpha not reflected at runtime unless gameobject is disabled and re-enabled

I’ve been struggling with this bug forever and am losing my mind. Tried lots of potential solutions from other threads and none work.

I have an Image that I’m trying to face in and out, but it will only show as full transparent or full opaque. I have tried manually assigning alpha values in script, Crossfading, and animation-based alpha-setting. I have tried this with the base color on the Image and I have tried is on a CanvasGroup. Nothing works. Unless at runtime I manually disable and re-enable the object in the inspector - then everything works fine. This does not work if I disable and re-enable the object in script. This is unaffected by whether the object is enabled at scene start.

Please help, I’m going crazy.

1 Like

no need to go crazy, sounds like a unity bug, so just upgrade to the next patch/minor version
I also highly recommend DoTween (not affiliated), it’s easy to use