Stratkit Ui Pagination¶
# Stratkit UI Pagination
Provides MonoBehaviours and shortcuts to add pagination to Optimized ScrollView Adapter (OSA)
How to use:¶
- open the wizard to create an
Optimised ScrollView
using the menu optionGameObject->UI->Optimised ScrollView(OSA)
- Make sure to check the field to generate Scrollbar on the last step and
- Follow the instructions in the docs for
Stratkit Optimized ScrollView Adapter
package - Add the Component "
ScrollViewAdapterPaginator
" to the Optimised ScrollView (OSA) GameObject - on the created adapter's inspector, click on the button called "Setup Pagination Components". It makes sure the necessary things are added or modified.
- 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