Add a element created a number of times, based on a variable

If I am understanding correctly, this should be pretty simple to do.

  1. Create a widget such as a horizontal box in your parent HUD widget class and check “isVariable”

  2. Create a function in your widget called “SpawnChildWidgets” (or something more meaningful).

  3. Add the following code:

  1. Call the function where you need it. I.e. OnConstruct or somewhere else.

Make sure there is a value set in the Player Controller variable.

Hope this helps.

Alex