- Home /
Question by
Sun-Pengfei · May 15, 2021 at 05:05 AM ·
uishadershadersmask
UI mask does not work on children with different Canvas component and particles
The UI's structure are as follows:
--Canvas C (Render mode: Screen Space - Camera; sorting layer is s1)
----Image A (with a UI Mask; it's a viewport in a `ScrollView`)
------Particle P (Particles Effect, Renderer's Sorting Layer s2 is above s1)
------Image B (with Canvas Component, Sorting Layer s3 is above s2)
The UI mask on A does not work on P and B. How can I make it work?
How can I write a mask shader that similar with UI mask but can work with sorting layers? Thanks!
Comment
Your answer
Follow this Question
Related Questions
Implement texture masking into simple existing shader 1 Answer
Shader tints transparency instead of leaving it invisible 1 Answer
Merge 2 shaders 0 Answers
Adapt alpha mask shader to gradual alpha increase with distance to object center 0 Answers
Using an object as a mask for another object (using Spine) 0 Answers