# Creating a Dynamic Scroll Box

**URL:** <https://forums.unrealengine.com/t/creating-a-dynamic-scroll-box/451884>\
**Category:** UI\
**Tags:** interfaces, scrollbox, unreal-engine, UI, Widget, question, Blueprint\
**Created:** [July 8, 2019, 1:40pm UTC](https://forums.unrealengine.com/t/creating-a-dynamic-scroll-box/451884 "2019-07-08T13:40:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TannerIsBender](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TannerIsBender](https://forums.unrealengine.com/u/TannerIsBender)\
**Post date:** [July 8, 2019, 1:40pm UTC](https://forums.unrealengine.com/t/creating-a-dynamic-scroll-box/451884/1 "2019-07-08T13:40:51Z")

</div>

I’m extremely new to blueprint scripting and UE4, but I will not let it stop me from accomplishing my task! Please help, I’ve been stuck on this for a few days. I’ve tried following different tutorials, but they seem to be outdated with my engine version.

I’m trying to create a scroll box that is populated from an enum I created.  
For instance, I have an Enum\_Category with 4 items. This means I want my scroll box to have 4 buttons with text on them.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/4/55405a6872295110d57f1d3a1ba3b584592c7571.png)

The scroll box I am creating should contain 4 buttons that have text ontop of them.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/c/90cea05077cc09281e256a4e7d57905236c86670.png)

My Main UI for this interface is called BP\_Builder. It has a background image, a button (to close the interface), and an empty scroll box that I would like to populate with the above button (the one that has a button and text)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/3/b93e4a388c3f5d7993f699156e53c17c2d272c03.png)

To open the BP\_Builder interface I press the “B” key and this function is called.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/4/fb4847aa838033d9ee1124e69187ede5a44874e1.png)

In my Third Person Character BP I created a variable called Categories that contains this structure:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/2/bf2c6ed69750ca10a23b15946bdc358ef07518e8.png)

I populated the my ThirdPersonCharacter’s array of Categories with this function (it is called right after the BP\_Builder interface is created)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/b/b2b3c84f4949c570b4c49eec90905b5202fdbff7.png)

What I need help with is the proper way to fill my Scroll Box (ScrollBox\_Category\_Parents) with buttons that are created from the values of the above Categories Array.

I’m new, but I tried to make it clear, if you have any questions please let me know! I’m open to learning as much as I can, thanks.
