Fork of https://github.com/brogan89/ScreenSwipe
Modifications:
- Added OnRectTransformDimensionsChange() to handle redraw on UI resize
- Added fix for when ScreenSwipe is hosted in a ScrollView. (See the Drag Handler functions for changes). Mods based on Information here
- Right click in hierarchy choose UI > Screen Swipe > Screen Swipe.
- Then do the same for Pagination.
- Drag Pagination gameObject into Pagination field in the Screen Swipe inspector.
- Do the same for the buttons if you want.
- Add more pages if you want.
- Make sure pagination toggle count is the same as the number of pages you have.
- Press play, and check it out.
See the Demo scene for best implementation.
This script used bits of code from and inspired by:
- Unity's ScrollRect.cs
- Unity-UI-Extensions HorizontalScrollSnap