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

I’m currently trying to create a VisualElement with a small image in the center.

In CSS I’d do this with:

background-repeat: no-repeat; ```

Would be great to be able to do that in USS too :)
5 Likes

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.

Bumping to say I also need this. Is there any update on it?

I am dealing with the same problem right now; has one of you guys found a satisfying workaround?

It should be coming soon.
https://discussions.unity.com/t/749908/8

Hi, the background-repeat (background-size and background-position) feature of UI Toolkit is coming in the next alpha release of 2022.2.

1 Like