Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Detect user's screen resolution - possible in BP?

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.

Product Version: Not Selected
more ▼

asked Jan 27 '15 at 08:15 PM in Blueprint Scripting

avatar image

2k 157 153 209

avatar image Slavq Feb 08 '15 at 07:33 PM

bump... :)

avatar image Humberto Feb 15 '15 at 09:47 PM

bump... o/

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
more ▼

answered Feb 16 '15 at 12:47 AM

avatar image

37.2k 936 172 1116

avatar image Slavq Mar 02 '15 at 09:21 PM

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 :(

avatar image Erasio Mar 02 '15 at 11:34 PM

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.

avatar image Slavq Mar 02 '15 at 11:43 PM

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.

avatar image spirit517 Oct 13 '16 at 04:05 PM

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. alt text Have a nice day!

avatar image Slavq Oct 13 '16 at 05:31 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question