it works fine on Unity 2021.3.20f1
but when I move my code to Unity 6000.0.19f it does not work at all !!!
Please don’t use the 2D (feature) tag for this, use the UGUI tag where people there can help you. Right now this is sitting in the 2D product area.
I’ll change the tags for you.
Thanks.
Ok. After some tries I fixed it, it’s the URP shader issue.
I create a pull request on GitHub: fix: [URP] Tiling and Offset values not work on the ui image when usi… by 949886 · Pull Request #8102 · Unity-Technologies/Graphics · GitHub
Hope it will be merged and fixed in the next release version.