Amplify Shader Editor Problem with Sprite and UI Shader Types: Property (_MainTex) already exists. Use SetTexture instead

Hi folks!

I’m trying to create Sprite and UI versions of a Surface shader I created. The thing is, if I name my main Texture Sampler “MainTex”, I receive this error on console: “Property (_MainTex) already exists. Use SetTexture instead.”. And if I name it something else, then I can’t directly reference the texture set in Sprite Renderer or Image components.

I feel like I’m missing some crucial information regarding how to do this correctly! :smiley: Does anyone have a workaround for this?


Mmmkay, I think I’ve found the solution: