How can you adjust the tiling and offset of a UI Sprite Image?
The controls are exposed in the Inspector for the RawImage but not for a Sprite Image. I’ve tried adding a material but that doesn’t seem to work either.
How can you adjust the tiling and offset of a UI Sprite Image?
The controls are exposed in the Inspector for the RawImage but not for a Sprite Image. I’ve tried adding a material but that doesn’t seem to work either.
Bump? Seems like a pretty simple thing.
The sprite shaders don’t support it. It’s not something that would be compatible with a sprite atlas anyway.
–Eric
Oh I see. I guess that explains why I couldn’t do it. Although it’s strange that they don’t support it as the renderer itself has a tiled option.
If you use a RawImage you can control this. The reason it’s not supported is that the sprite may be packed and we generate internal tiling ext for tiled sprites using extra verts.
I see. Thanks for the clarification Tim.
Hi
I used RawImage like described here for similiar purpose, to be able to scroll the texture. When I adjust the UVRect in editor it’s scrolling alright but when doing it from code there’s no visual difference, can see values are changing in editor though. Does it need some additional update method to be refreshed with new values?
ok nevermind, value I add to uv needs scaling down