Search Unity

Feature Request USS Support for background-repeat and background-position would be very welcomed!

Discussion in 'UI Toolkit' started by tonycoculuzzi, Jan 7, 2021.

  1. tonycoculuzzi

    tonycoculuzzi

    Joined:
    Jun 2, 2011
    Posts:
    301
    I'm currently trying to create a VisualElement with a small image in the center.

    In CSS I'd do this with:

    background-position: center;
    background-repeat: no-repeat;


    Would be great to be able to do that in USS too :)
     
  2. oobartez

    oobartez

    Joined:
    Oct 12, 2016
    Posts:
    167
    We need this too! The built-in support for 9-slice borders does not support tiling, so we wanted to build a custom control. But without any form of repeated background I don't think it's possible?

    After some initial research it actually appears to be the biggest obstacle to migrating our project to UITookit.
     
  3. JasonBricco

    JasonBricco

    Joined:
    Jul 15, 2013
    Posts:
    956
    Bumping to say I also need this. Is there any update on it?
     
  4. Merikles

    Merikles

    Joined:
    Dec 31, 2018
    Posts:
    2
    I am dealing with the same problem right now; has one of you guys found a satisfying workaround?
     
  5. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    811
  6. ncerone_unity

    ncerone_unity

    Unity Technologies

    Joined:
    Jan 13, 2022
    Posts:
    36
    Hi, the background-repeat (background-size and background-position) feature of UI Toolkit is coming in the next alpha release of 2022.2.
     
    Schneider21 likes this.