Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Updated to 5.2 and now all UI Images are pure white

Discussion in 'UGUI & TextMesh Pro' started by RMAudio, Sep 9, 2015.

  1. RMAudio

    RMAudio

    Joined:
    Dec 17, 2011
    Posts:
    7
    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?
     
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    to be honest that sounds correct. a Image with no sprite should be white (assuming the material is white). what were you seeing before?
     
  3. RMAudio

    RMAudio

    Joined:
    Dec 17, 2011
    Posts:
    7
    Here's how the scene currently looks (with the Image component on the right)

    Current.png

    The material attached is as follows:

    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?
     
  4. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    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?
     
  5. RMAudio

    RMAudio

    Joined:
    Dec 17, 2011
    Posts:
    7
    I submitted a bug report and I believe the bug number should be 726227.

    Thanks!
     
    SimonDarksideJ and phil-Unity like this.
  6. mercury-storm

    mercury-storm

    Joined:
    Jul 2, 2010
    Posts:
    26
    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.
     
  7. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    I ran out of time today but will be continuing to look tomorrow.
     
  8. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,184
    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).
     
    SimonDarksideJ, RMAudio and wikmanyo like this.
  9. RMAudio

    RMAudio

    Joined:
    Dec 17, 2011
    Posts:
    7
    Thank you for the quick response and resolution!
     
  10. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    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
     
  11. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,605
    I'm getting this, but it's all black for me.
     
  12. mercury-storm

    mercury-storm

    Joined:
    Jul 2, 2010
    Posts:
    26
    This is not fixed in 5.2.1p1

    The image is either completely black or completely white depending on the shader used.
     
  13. mercury-storm

    mercury-storm

    Joined:
    Jul 2, 2010
    Posts:
    26
    I just sent in another bug report with a project that duplicates this issue exactly in 5.2.1p1
     
  14. Dynamoid-Megan

    Dynamoid-Megan

    Joined:
    Apr 16, 2015
    Posts:
    72
    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.
     
    gadgetoflife likes this.
  15. Dynamoid-Megan

    Dynamoid-Megan

    Joined:
    Apr 16, 2015
    Posts:
    72
    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.
     
  16. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    try p3 out later this week.
     
  17. SirBedlam

    SirBedlam

    Joined:
    Feb 10, 2012
    Posts:
    13
    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. :(
     
  18. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    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.
     
  19. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,685
    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?