How to show the current index value after re-starting the game?

I’m new to Unreal Engine and trying to learn the basics. Right now, I’m trying to get a ComboBox to show the current resolution after re-starting the game. My problem is, that it doesn’t show anything or does, but only index 0, the changes are saved in the files, only this index text won’t show at all or the right resolution. I also want to get this to the window mode, shadow quality etc., but I haven’t got to them yet. This is my last resort, I looked through many unreal forum questions and watched videos or asked AI I even tried to solve it by trying different approaches myself, but nothing seems to help. I would be really thankful for help.




This is the Packaged Game:

1 Like

I would take a look at this

Thanks, but that didn’t help. Any other ideas?

1 Like

Now I think about it, I seem to recall that screen res is not stored in these settings ( but don’t have time to check now ). You might have to do it manually with the save game.

I’m not entirely sure what’s causing the problem, but I’d start by inspecting the values you feed into SetSelectedOption — it’s possible your ToText node is adding extra whitespace or formatting.

As a cleaner alternative, you could store your resolutions in an array of FIntPoint instead of converting them to text. That way you avoid any string-parsing issues and keep your logic type-safe.

If you need more fine-grained control over window sizing (for example, distinguishing between viewport size and game resolution), this thread has a good explanation and some code samples:
How to get current screen size/resolution? - Development / Programming & Scripting - Epic Developer Community Forums

I did it just like in your explanation with the array, it worked instantly. Maybe it really was the text. Thanks a lot, I sat over 3 days only on this.



I want to add, that it only works when I have an equal enum (direct) connected with a not bool to a branch. Without that it does display but resets to the fallback resolution text when exiting the option’s menu.