Search Unity

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:
    3
    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,913
    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:
    780
    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.