A downloadable tool for Windows, macOS, Linux, and Android

(The original release is in my GitHub repository. Where you can find the introduction and detailed instructions about DynamicScrollRect.)

Introduction

In many scenarios, you might need a scrollable view to display a bunch of elements that cannot be displayed on one screen at the same time. In some cases you may also want to arrange the layout of scroll view vertically or horizontally while some elements in the scroll view contain their own layouts as well, such as developing a scroll view to display player inventory in which items should be categorized by their types.

The ScrollView component provided by Unity is a simple solution for your needs. However, ScrollView instantiates all elements and manages them at once, consuming a lot of resources on those elements that are not displayed. DynamicScrollRect provides an optimized solution for this scenario. The scroll view will only instantiate those elements that are going to be displayed within the scroll view, saving a lot of draw calls and memory in use. DynamicScrollRect also supports the nested layout structure mentioned above. If you are trying to display a large number of elements or construct a complex scroll view layout, DynamicScrollRect is absolutely what you need!

Features

  • Support nested layout group structure. That is, you can assign LayoutGroup component to the scroll content of DynamicScrollRect as a parent layout. And for items inside the scroll content, you can continue to assign LayoutGroup to them as children layouts. (Noted that GridLayoutGroup is not allowed in scroll content)
  • Take advantage of object pool. Reuse collectible object to improve performance and memory usage.
  • Support adding elements to or removing elements from scroll view during runtime.
  • Support relocating scroll view to specific item group, item, or subItem.
  • Support scroll bar.

Instructions

For detail instructions, please refer to my GitHub Webpage.


Download

Download
DynamicScrollRect.unitypackage 27 kB

Install instructions

After downloading the 'DynamicScrollRect.unitypackage' file. Open your unity editor, go to the top banner "Assets -> Import Package -> Custom Package...". Select the package file you just download. Import all files to your Unity project. Then you are all done~

Leave a comment

Log in with itch.io to leave a comment.