- Home /
Custom UI Shader Stencil Problem [willing to pay for fix]
https://i.imgur.com/BPENFlr.png
custom shader on UI element that needs stencil to work with UI MASK.
The problem is, if the stencil code is used, I can no longer set material colors for the subshader to work correctly, so the palette swap no longer works.
Answer by Clonze · May 11, 2018 at 12:49 AM
https://i.imgur.com/6esNou6.png (palette swap broken, but ui mask works)
https://i.imgur.com/ZYFFB2x.png (palette swap works, but ui mask broken)
I made a script that inherits from Image component, and overrides a method for getting the $$anonymous$$aterial. inside that was able to set the properties of my shader without them resetting. :)
Your answer
Follow this Question
Related Questions
How to set shader vertex normals to face up 1 Answer
EnableKeyword("_EMISSION") not working 2019.3.13f1 0 Answers
Silhouette overlay shader 0 Answers
Displace and show normals in fragment shader 1 Answer
CRT shader but NOT for camera 0 Answers