Updated to 5.2 and now all UI Images are pure white

The title is pretty self explanatory really - I updated to Unity 5.2 and now all UI Images with materials (and no sprite) set are now rendered pure white. I’m using custom shaders, but even switching to any of the default shaders appears to make no difference (though some will result in the Images being rendered pure black instead).

Does anyone have any ideas?

to be honest that sounds correct. a Image with no sprite should be white (assuming the material is white). what were you seeing before?

Here’s how the scene currently looks (with the Image component on the right)

The material attached is as follows:

2288152--153794--Material.png

Prior to updating to 5.2, it was perfectly happy to display the Texture from the Material in the same way as it would if rendered onto a plane in world space. Were we unintentionally using some kind of hack that should not have been working?

Hmm interesting, i dont think we ever tested for that use case. Are you able to submit a bug report and give me the bug number?

I submitted a bug report and I believe the bug number should be 726227.

Thanks!

2 Likes

I’m also having this problem. No materials with images can be used on UI Images/RawImages right now, meaning using shaders to get things like particles or render textures with transparencies displayed on the UI are impossible.

I ran out of time today but will be continuing to look tomorrow.

Hi, I’ve fixed this for a patch release. We were setting the image texture to a white texture at all times (this is wrong for this case).

3 Likes

Thank you for the quick response and resolution!

Simple for for this is to set the “blank” image to Alpha 0.
Then you get the same behavior as before. So that will work until @Tim-C 's patch in place

I’m getting this, but it’s all black for me.

This is not fixed in 5.2.1p1

The image is either completely black or completely white depending on the shader used.

I just sent in another bug report with a project that duplicates this issue exactly in 5.2.1p1

I am also having problem, changing from Image(script) to RawImage(script) showed the colors I was seeing as all black after updating to 5.2.1p1.

1 Like

Still having this issue in 5.2.1p2, was hoping my sprites would be fixed after the update, but no luck. They stay colorless until either a Raw Image is added instead of Image, or going in and manually adding a sprite to every object in the GUI.

try p3 out later this week.

I’m still having this problem in 5.3.0f4. Nothing seems to fix it. Everything was working fine until I updated, now there’s only a white plane where the sprites should be. This is why I’m always reluctant to update; something always gets messed up. :frowning:

you’re the first one to report this issue in 5.3 it should have been fixed 2 months ago and i personally havn’t seen it recently.

Must be something in your project, as I’ve no issues with the UI Extensions project with images.
Have you tried clearing out your Temp, Library and obj folders and reloading your project since the update?

Also, can you try replicating it in a blank project?