UI Shader - multiplying 9-sliced sprite with non-nine-sliced texture?

Hi,
I’m attempting to use the Shader Graph to put a parchment effect on my UI, by multiplying the main sprite with a parchment texture.

Trouble is, my UI sprite is 9-sliced, and the 9-slice is applying to the parchment texture as well. In the image below, you can see how the 9-sliced stretches the parchment grain way out. Ideally, I would just set the parchment texture to repeat, unaffected by the 9-slice.

Images show the shader graph I’ve got set up, and the result.

Does anyone know a way to work around this, for the desired result? My goal is to use this shader in a lot of places to avoid the need for individual big textures for different UI panels.

Or any suggestions for a better way to accomplish this?


Any luck on finding a solution for this? I have the exact same issue with uv overlay animation.

1 Like

Another year has passed! Did anyone find any solution for this?

I’ve stumbled across this tool (GitHub - mob-sakai/ShinyEffectForUGUI: Shiny effect of uGUI, which does not need mask or normal map.), it creates a shine effect on UI images and 9-sliced ones work perfectly. I’m going to try and find a clue about how it’s implemented there. Feel free to browse and share your thoughts :slightly_smiling_face: