Skip to content

Stratkit Optimized ScrollView Adapter

Extension module for the Optimized ScrollView Adapter (OSA) plugin. Requires the third party plugin to be installed and to have licenses for it.

The aim of this package is to streamline the process of creating an optimized scroll view.

Available Adapters

  • SimpleScrollViewAdapter: Simplifies the usage of a scroll view by allowing just one single prefab to be set up. Create a new adapter class, inherit from it and fill the views with the data as desired.
  • MultiCellScrollViewAdapter: Gives a streamlined mechanism to provide many different data formats and prefabs on a single scroll view. Read the class documentation to see the advantages and drawbacks of this approach.

Steps to create a scroll view

  1. Create a regular Unity Scroll View

Create scroll rect

  1. Select the ScrollRect in the inspector and choose in which direction you want it to be, unchecking the orientation that is not desired and removing the undesired scrollbar from the hierarchy

Configure scroll rect

  1. Open the small settings on the ScrollRect's inspector and select Optimize with OSA. If a window doesn't open, check the Logs to see what needs to be configured in order to allow the conversion.

Start conversion

  1. On the open Window, do not generate a new adapter, instead search for the adapter you plan to use. If you don't have one yet then it is not necessary to perform the conversion yet.

Select adapter

  1. Delete the old Scroll Rect (it is never used again), set up your new Scroll View Adapter as required (generally it would at least need prefabs to spawn as cells).

Finish setup