Skip to content

danpcotton/ScreenSwipe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork

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

ScreenSwipe

  • 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.

References

This script used bits of code from and inspired by:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%