Why would setting game's screen resolution in GameUserSettings affect Editor's Application Scale?
I'm developing on Windows 8.1, using a dual-booted Retina MacBook Pro. Since the screen resolution is 2880x1800, I have Desktop Scaling turned on at 200% for the laptop monitor.
I haven't had a problem with the Editor scaling correctly, until I began writing code for my game that sets the game's resolution, and sets it to Windowed Full Screen. Now whenever I launch the Editor, even not in that project, the Editor's Widget scaling is set to 1.0, completely ignoring the desktop scaling. This makes the Editor unusable, unless I manually set the Widget Scaling, per the instructions in this forum post: https://forums.unrealengine.com/showthread.php?15158-High-resolution-display-support-for-editor
Here is the code that sets my game's resolution:
Also, when I update the Widget Scaling in the Widget Reflector menu, the setting isn't saved; so the next time I open the Editor, whether on the project I wrote the above code, or in a brand new blank project, it's back to a scale of 1.0.
Is this a bug, or are these settings somehow tied together? And how can I avoid having to set the Application Scale every time I open the Editor to work on a project?
The WidgetReflector settings are not saved. The widget reflector is a developer tool; it isn't meant as a proper DPI scaling setting. Rather, it is a way for you to play around with various scaling settings and ensure that any widgets you are authoring work correctly.
The editor does not currently respect the OS's DPI setting. There IS a mechanism that scales game content based on resolution. You can read more about it here: https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/DPIScaling/index.html
Meanwhile, all the underpinnings for respecting the OS's DPI scale are there. You should be able to hack it real quick by calling
EDIT: One caveat is that the editor has not been extensively tested with non-1 DPI scales. You may find some bugs specific to the editor app. If you do, we'd love for you to report them so that we can get on fixing them.
Follow this question
Once you sign in you will be able to subscribe for any updates here