Get screen monitor size (in inches) rather than resolution

PongoArt
Sat, 04 Dec 2021 17:35:39 +0000
Rendering

Hi!

I have a Post-Process material which outlines certain meshes in the game, I’m setting the width of this outline based on how large your screen resolution is (1080p = 1px, larger than that= 2px).

The issue I’m having is that since there are some monitors which are small (15inches) with larger than 1080p resolution this technique isn’t very consistent.
I’m looking to find a way to get the monitor’s size in inches rather than its resolution to define that outline width, since using the resolution really doesn’t yield the desired result.

Is there any way to get that metric in UE4 - blueprints or otherwise?

Cheers!

3 posts - 1 participant