Can I create a player name list with help of combo box in a UMG widget

1 Save Game is enough. If you have 4 combo boxes, you can have 4 arrays. If you have 4000 combo boxes, you do not want to manually create 4000 arrays, ofc.

You could use Map of Int | String Array (made with a struct) and push in the arrays of entries you pulled out of the widget.

It’s hard to advise as I do not understand how you’ve structured the data but here’s something very generic:

  • lets say each combo widget has an ID and can spit out its own data (perhaps via a pure function mentioned somewhere above):

image

  • a struct that holds entries:

image

  • when you’re ready to save all 4000 combo boxes, you add the data to the Map whose key is the comboID and the abovementioned struct is the combo data:

  • to read and redo the combo boxes:


Again, this is all pseudoscript as we do not know what goes where. I wouldn’t bother with the above if I had just a few combo boxes, though.


edit: updated images & entires* = entries, ofc, ffs :wink: And info on Maps:

Vital stuff for many things. Think of it as of a smart and very fast array.

1 Like