How to Implement SoftMask with ScrollView

How to Implement SoftMask with ScrollView

I want to implement soft mask like below library for scroll view. (ngui soft clip)

The easiest way ( and best for performance) is to simulate it with graphics. For example this is how I made same thing for shop.

Just used white transparent gradients image at top and bottom of the scroll view and above UI to create a soft transition.

You can always create a shader, but I try to do without that if it’s possible for performance reasons.


Thank you !

I didn’t realize use Graphcs component.(I researched shader code however I cann’t send scrollview children item as texture to gpu).

I’m sorry, please teach me some code snipet.