Skip to content

Stratkit Ui Pagination

# Stratkit UI Pagination

Provides MonoBehaviours and shortcuts to add pagination to Optimized ScrollView Adapter (OSA)

How to use:

  1. open the wizard to create an Optimised ScrollView using the menu option GameObject->UI->Optimised ScrollView(OSA)
  2. Make sure to check the field to generate Scrollbar on the last step and
  3. Follow the instructions in the docs for Stratkit Optimized ScrollView Adapter package
  4. Add the Component "ScrollViewAdapterPaginator" to the Optimised ScrollView (OSA) GameObject
  5. on the created adapter's inspector, click on the button called "Setup Pagination Components". It makes sure the necessary things are added or modified.
  6. Adjust the setup of the UI elements in case of issues relevant to the visuals of the UI. You can take a look at the provided samples to see how it is done

Notes:

  • The item prefabs and related settings like padding should be set correctly to only see one page fitting the viewport.
  • If instead of the first 2 steps, you make a OSA by converting a Scroll View, you will need to adjust the Scrollbar since its "Sliding Area" has zero width