Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

How to obtain physical screen size in iOS simulator?

$
0
0
I want to limit the board size of a 3D board game on smaller devices. Works nicely on physical devices. Unfortunately I don’t have all iPads and iPhones available. I’m using **Screen.dpi** together with Screen.width and Screen.height to calculate the physical Screen size. Then I decide on a small, medium, or large board size. But the iOS simulator gives me a **0** for **Screen.dpi**. Is this a bug in Unity (like the one fixed in 2017.3 regarding Screen.dpi and new iPhones?) or normal behavior of the simulator? Is there a better way?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>