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.
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âŚ