Hi, first of all, for the life of me I cant find the background-repeat or background-size properties in the docs.
as for the bug, there seem to always be a single row of pixels between each repeat, you can see it both in the ui builder and in the game view
The sprite itself does not have that line,
I checked and this happens with any texture I try.
To repro just use any texture for a background with the following properties
background-repeat: repeat-y;
background-size: contain;
Could you submit a repro through Help>Report a bug…
It will allow QA to investigate furthermore. Thanks!
Anything about this? Got a similar problem…
The texture is without any alpha:
Repeated it results in translucent gaps between the repetitions:
Interestingly it works fine in the UIBuilder:
But I’m actually using the same Unity Default Runtime Theme for the builder and the game…
I’ve even set Alpha source to none in the sprite import settings…
This could be due to the mesh generation. Could you submit a bug report?
Qriva
March 18, 2024, 4:11pm
6
Has this problem ever been reported or fixed?
The mesh generation is broken, it creates gaps between repeated segments, unless the proportion is pixel perfect.
There is this case, which has been partly fixed, as you can see in the resolution notes: Unity Issue Tracker - Transparent gaps between repeated textures of Visual Element background in Game view
We plan to fix the underlying issue in the near future.
Qriva
March 18, 2024, 7:38pm
8
I hope it will be fixed in 2022 too.