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

Bug UIElement text color affected by editor play mode tint (1209772)

Discussion in 'UI Toolkit' started by Elringus, Jan 7, 2020.

  1. Elringus

    Elringus

    Joined:
    Oct 3, 2012
    Posts:
    482
    When entering play mode, UIElement's text is tinted, making it unreadable, especially when the text color is light (eg, white).

    No workarounds are available as well, making any light-colored editor text unusable.

    Example:


    I've noticed a related issue was stated to be fixed in Unity 2019.3 beta 6, but I've checked it with 2019.3.0.f4 and the issue is still there.



    I've created a reproduction project and sent bug report; case ID: 1209772.
     
    Wobbers likes this.
  2. jonathanma_unity

    jonathanma_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    229
    Thanks for the bug report, we will look into it.
     
    Elringus likes this.
  3. GuillaumeLeplang

    GuillaumeLeplang

    Joined:
    Sep 3, 2019
    Posts:
    8
  4. Elringus

    Elringus

    Joined:
    Oct 3, 2012
    Posts:
    482
    Hi, Don't think so. It only affects the text.

    I've also got a response from the QA stuff, stating that this behavior is by design. It didn't happen in the previous Unity versions, but I guess that's due to the new skin and the fact that the text is now also tinted in play mode. It's still debatable whether such behavior is ok; after all, any light text is unreadable in play mode when using light skin (dark one has another default tint, which is not affecting light text that much). Additionally, only text is affected with this tint: borders, for example, are not, and look fine even when they have the same color as text.
     
  5. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    820
    It is unclear from your screenshot, but if this is text in an Editor Window then yes I would expect it to change and be tinted by playmode just like anything else in the editor. If it is a runtime UI though, then that would not be expected behaviour.
     
    jonathanma_unity likes this.
  6. Elringus

    Elringus

    Joined:
    Oct 3, 2012
    Posts:
    482
    That's an editor window, right. But the text is not tinted as everything else, but much more. For example, if I'd add a border to the label with those text with the same color, it'd be much lighter when in play mode. I guess they're tinting the text separately from other graphics and the tint is too aggressive.