Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug 2019.3.0b4 UIElements rendering messed up (looking like film negative)

Discussion in 'UI Toolkit' started by taylank, Sep 24, 2019.

  1. taylank

    taylank

    Joined:
    Nov 3, 2012
    Posts:
    182
    My custom built node graph using UIElements looks really strange after upgrading to 2019.3.0b4.


    Before (2019.3.0b3):
    upload_2019-9-23_16-18-24.png


    Same graph after upgrading to b4, no code or asset changes:


    There are no errors in the console.
    Any idea what might be responsible for this?
     
  2. taylank

    taylank

    Joined:
    Nov 3, 2012
    Posts:
    182
    The second image didn't load properly, I think. Here it is:

    upload_2019-9-23_16-25-32.png
     
  3. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    998
    We have not seen this particular issue, but we have a few fixes in flight that might fix this in the next beta. This thread has more details: https://forum.unity.com/threads/bug-with-shader-graph.694636/

    In any case, it would be really helpful if you could file a bug report (Help > Report a Bug...). This would give us more details about your platform and specific project settings. Thank you!
     
  4. taylank

    taylank

    Joined:
    Nov 3, 2012
    Posts:
    182
    @mcoted3d Thanks I just did that. In the meantime the problem persists for me on 2019.3.0b5.

    Playing around with it a bit more, though, it appears that the background-color property is actually affecting the foreground colors too when I change its alpha.

    Take a look at the gif below and observe how the label text "Switch" changes color from white to black (and other colors in between) depending on the alpha of the containing VisualElement's background-color. Interestingly, the flat white color in the image is not specified anywhere in the USS at all, and appears to be a result of additive blending or something like that.

    upload_2019-10-1_14-14-6.gif
     
  5. taylank

    taylank

    Joined:
    Nov 3, 2012
    Posts:
    182
  6. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    998
    This behaviour doesn't seem correct to me either. Thanks for filing a bug!