x

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"

How to get native monitor resolution?

Hi, is there any way to get the native monitor resolution in Blueprints?

Product Version: Not Selected
Tags:
more ▼

asked Apr 08 '15 at 04:55 AM in Blueprint Scripting

avatar image

Stormrage256
1k 83 75 118

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

5 answers: sort voted first

The best I know is that you can do a GetSupportedFullScreenResolutions to get the list of resolutions the monitor support and usually the last index is the best(highest) resolution for the monitor, not sure if that's what you want.

more ▼

answered Apr 09 '16 at 05:48 AM

avatar image

Velsen
141 4 5 6

avatar image Stormrage256 Apr 09 '16 at 06:53 AM

Yea that's what I'm doing right now as well.

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

Only via C++ using generic platfrom APIs in UE4 which let you get info about platform you running in

https://docs.unrealengine.com/latest/INT/API/Runtime/Core/GenericPlatform/FDisplayMetrics/index.html

In blueprint it seems you only get viewport size

more ▼

answered Jul 20 '15 at 02:59 AM

avatar image

Shadowriver
37.1k 935 172 1116

avatar image colin.avrech Apr 09 '16 at 05:14 AM

Bump! Anyone figure this out yet or do we need to expose the c++ value into blueprints through a UCLASS?

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

Get Game User Settings > Get Screen Resolution

That will give you the default resolution.

Get Supported Fullscreen Resolution will get you an array of potential resolutions, from smallest to largest.

more ▼

answered Feb 27 '17 at 09:57 PM

avatar image

shaq_mobile
34 8 8 12

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

Hey Stormrage256,

While you're in blueprints, you should be able to use the function "get viewport size" and it'll receive the size of the monitor. I found a few different links that may help you a bit further:

AnswerHub Post: Get Screen Resolution AnswerHub Post: BP Screen Resolution

Hope this helps! :)

more ▼

answered Apr 08 '15 at 04:16 PM

avatar image Stormrage256 Apr 09 '15 at 01:01 PM

Hi Samantha, I've tried using the 'get viewport size', but it gives the resolution at which the game window runs right? I was referring to the native screen resolution of the monitor, so that I can set it as the default resolution when the game starts.

avatar image Samantha Sutton ♦♦ STAFF Apr 09 '15 at 03:07 PM

Hey Stormrage256,

Have you tried going into the Editor Preferences, under Level Editor and adjusting the resolution size from the Play tab? You should be able to set it to your native resolution there, and the viewport size within the blueprint should then pull from that.

Thanks!

avatar image Stormrage256 Apr 17 '15 at 03:59 PM

Hi Samantha, the setting in the editor preferences would only work for my system. If I want to run in different systems with different native resolutions, I want to get the native resolution of that system. In the current scenario, it will always launch with the resolution that I specified in the editor.

For example, If I set it to 1080p because that's my native resolution and then I run on another system that has a native resolution of 1920x1200, setting the value in the editor preferences will try to launch the game at 1080p always.

avatar image Samantha Sutton ♦♦ STAFF Apr 17 '15 at 05:45 PM

Hey Stormrage256,

You should be able to go ahead and use the blueprint node called 'get viewport size' and it'll provide you with the x and y values on the screen separately.

Cheers!

avatar image Requios Jul 19 '15 at 09:28 PM

That is still not an answer to this simple question. Is there a way in UE4 to get the native resolution of the monitor of the end user?

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

for those who are still looking , i found out about a node called " Get desktop resolution " this get's the resolution at which your desktop is running at , (( it does not get the native resolution of screen )) because windows allows you to run your system in a lower resolution , it will grap that res for you what ever you have your windows using it will grap it.

more ▼

answered Dec 21 '18 at 04:33 PM

avatar image

sheriff 99
20 2 6 8

(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