Our situation is we have cards which use SpriteRenderers. The cards have text on them and when these cards are in a scrollview we need to be able to mask the text.
However, because our scrollview uses a SpriteMask (not a Mask) the text does not get masked.
I have limited understanding of shaders but we found if you change the Stencil id to 1 and the Stencil Comp to 3 we can achieve masking.
The problem is, this makes all other text which shared this material invisible unless they are inside a mask.
So my thought was we will create a cloned font where one has the stencil setting and one does not. However when I clone the font I cannot change the material:
Can you advise us on how to create a special “stencil” material and swap the font that uses this to mask as needed or suggest a way we can handle this situation where the text needs to be masked by a SpriteMask instead of a Mask?



