I hope the title is self-explanatory It could be used to automatically set proper resolution via Execute Console Command, for example right after Begin Play of the first level, which could be a main menu.
bumpâŚ
bump⌠o/
Thx, but it gives viewport size (so it gives different values every time i resize my viewport), not screen resolution size. I guess that to get screen resolution we need to dig deeper into C++ for some system display info
Just out of curiosity: Why? The viewport size is all that matters as you canât work with anything else. If itâs just for the resolution menu so only possible resolutions are displayed⌠You will have to do some C++ work there anyway since there is currently no way to rebind keys in BP only and I assume you want to do that. But besides that I canât really think of one.
Most of new games detects user native resolution and sets it up just after game starts - So, for example, if user has 1920x1080 screen resolution, his game will start with that resolution automatically. Iâve thought if maybe thatâs possible in UE blueprints⌠But well, itâs not that important, we can always start game with default HD res and allow to change it via options.
I know this is an old thread but i know how to solve your problem.
If you want to detect highest resolution that is users monitor able to use, just simply use node âGet supported Fullscreen Resolutionsâ which returns array of all possible resolutions that users monitor can do, and the last one in this array, is the highest one.
So jsut set the resolution to the last resolution in that array.
WARNING: This BP node returns resolutions in format without âxâ in between. For example 1920x1080 will return as 1920108. So you need to put âxâ in between the numbers if you want to execute console command via BP, otherwise the command will not work.
Have a nice day!
Thanks, Iâll try that soon! Looks like the node has been added after my question here, maybe recently?
BTW. You can click the little arrow near your comment and select âconvert this comment into an answerâ, I would accept it to tidy up the question & mark it as resolved.