Advertisement

Why my shader is visible outside of Viewport mask of ScrollView?

Started by February 05, 2020 03:12 PM
0 comments, last by Alexander Nazarov 4 years, 9 months ago

Hello. In my project in Unity I have a ScrollView. Scroll panel in Unity has the next structure.

Post image

Viewport has Mask that makes visible elements of Content only inside this mask.

When in Content I have an Image that uses a material with my custom shader (just a color gradient), this image becomes visible outside of Viewport(outside of mask).

Could you prompt me, how can I use my shaders properly in this particular case.

This topic is closed to new replies.

Advertisement