# ListView vs ScrolBox?

**URL:** <https://forums.unrealengine.com/t/listview-vs-scrolbox/274197>\
**Category:** UI\
**Tags:** unreal-engine\
**Created:** [January 22, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197 "2022-01-22T15:34:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 24, 2022, 9:47am UTC](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197/2 "2022-01-24T09:47:41Z")

</div>

Imagine you have 200 widgets.

If you place widgets in a Scroll Box, all of them get instantiated, their assets loaded and it all sits in the memory. If you use a List View, only the necessary widgets will be created - on the fly. The List View will automagically maintain their lifecycle.

There’s a tangible example at the end of this post:

> [@Creating a combat log in Blueprint](https://forums.unrealengine.com/t/creating-a-combat-log-in-blueprint/150005/10):
>
> No problem, if you want to experiment with the List View instead: create an Object class blueprint in the content browser with an exposed text variable - it will be used to store data in the list view, called Entry Data below. once you have it, you can do this in the wLogLine’s class settings: The Implemented Interfaces bit on the left is the critical part here! It allows you to pull the data from a list view object and assign it to the widget’s variable. Th…

A combat log like this could easily grow to hold thousands of widget entries, but the likelihood of the user wanting to seem them all is pretty low. So it’s better to have a List View hold just the data, rather than have a Scroll Box keep it all alive at all times.

* * *

This tooltip:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa998d5a333619a1bbdf72ae0c51f862075578b2.png)

is not really _that_ accurate in my experience, more than 5 would be created and kept alive. I’d say around 10, but that’s much better than 200!

* * *

If you need to display just a handful of widgets, a Scroll Box will be more than fine. If you need to handle hundreds or thousands elements, consider paying the upfront cost of setting up a List View.

---

_[View the full topic](https://forums.unrealengine.com/t/listview-vs-scrolbox/274197)._
