In my app I have a page displayed that takes up most of the screen. I’d like to make it so I can scroll horizontally to a different page, but then also scroll vertically to read the text on the page.
Is it possible to make it:
- Scroll ONLY horizontal/vertical, but not both at the same time
- To have the horizontal scroll “snap”, such as the iOS homescreen.
Currently I got the “snapping” part down, using Jaroslav Stehlik’s modified ScrollRect script from here:
But I have no idea how to make it vertically scroll also. Adding a vertical ScrollRect to each GameObject seems to break the horizontal scroll, and using a grid layout works, but then the snapping applies vertically too.
Just wondering if there’s an easy way to accomplish this.