Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Feature Request It would be nice if background-color was supported for Box.

Discussion in 'UI Toolkit' started by HexSine, Jul 28, 2019.

  1. HexSine

    HexSine

    Joined:
    Oct 1, 2017
    Posts:
    1
    Box does not appear to support background color. I tried to get around this by setting the background-color or the items in the box, but then there was a 1 pixel line across the bottom that was the box's color which was also not ideal.
    upload_2019-7-27_19-17-37.png
     
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,540
    It works fine for me in custom windows. Is this for editor skinning? There are lots of pieces that don't work properly there.
     
  3. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    175
    Hello,

    This might be because the background-image property is set on the Box in this version of the theme.
    This issue might disappear in 2019.3 as the default styling has changed.

    In doubt you can have a look at the debugger to see which selectors are being applied to the Box and author your USS in consequence.
     
unityunity