Hi, I am making an app with unity, and the scroller element, is just not smooth. Well, it's smooth on unity but when I deploy the app on the phone its slow. I am using Mask elements on 2D sprites and read before I should go for Mask2D but I am not sure how to use it or if it would make a difference.
Mask uses a shader to hide elements outside of the area which can be quite costly on mobile platforms. Mask2D does a very simple check to see if the rectangles are outside and clip them if they are. It's much faster but won't support non-rectangle masks(e.g a circle). If you are using a simple rectangular scroll view them a Mask2D should provide a performance improvement. Just remove the Mask component and add the Mask2D in place of it.