I want to create a scrollable panel. In it there should be some sprites.
I’ve found a depth mask shader which can make elements invisible outside the panel. But it works only with meshes. So I created a Quad, added a copy of my sprite to it as a texture, put it to the scene and set its shader to Sprites/Default.
The result differs.
The left one is Quad and its picture is blured.
Switching Quad to Plane produces the same result. As well as choosing shaders from Unlit or Transparent.
Yes, I tried GUI, but on devices with different screen dimensions the images move to wrong place. Also, I haven’t found a way to convert world Rect to GUI Rect, only ScreenToGUIRect which doesn’t help.