Populate a combo box with supported screen resolutions

Im trying to get my Combobox to populate its options with available screen sizes and im not sure how to do this. Ive tried getting the arrow and taking its XY value and putting in a string but nothing happens please help!

After adding a combo box to your widget, you could get all supported resolutions using the ‘Get Supported FullScreen Resolutions’ within your widget blueprint and loop through the output array to add the corresponding resolutions as entries into your combo box. Here’s a screenshot:

You could then create this widget in your controller and add to viewport. If you click on the combobox within the game, it will list all the resolutions.

The problem with this approach is that each time you click that combo box, you will get an increment of the resolutions output, ever increasing the size of the combo box selections. So say the index of resolutions is 20, the next time you click that combo box, you will have 40 selections, then 60 and so on.
To remedy this, I added a LENGTH and linked it to a Do N so that once the end of the index length is reached, the loop is ended and you don’t get the increments.

1 Like

I haven’t “Add Option” in the list of Executable actions at all! I am on 4.11.2 now. Does it was deleted?

Found that “Add Option”! I have “Context Sensitive” checkbox checked. Disabling it brings “Add Option” at last. But what an action without any name in the middle of the BP? These two boxes with green enter and pink exit and grey circle in the middle? How i can find and call it?

Found it too:) But where i need to put console commands for resolutions? I don’t see any “Execute console command” box here…