I’m using code to detect available resolutions to the users display. The last one is the largest, and if user is retina, should be well over 1740 in width.
var resolutions : Resolution[] = Screen.resolutions;
var screenSize = 2;
for (var res2 in resolutions) {
if (res2.width >= 1740)
{
screenSize = 3;
}
Now, in the unity player, this works fine on a Retina MBP. However, when playing fullscreen in a Mac build, the largest resolution available is 1440x900, and that’s the largest that Screen.resolutions detects.
Is there any way to tell if the player is Retina-capable?
*** NOTE: When the mac resolution is set to the highest setting (that is, non-retina, just native 2880x1800), the build plays at full screen and detects 1920x1200 resolution, which is Unity’s largest it seems, and screenSize = 3 ***