Quantcast
Channel: Answers for "Is there a way to determine Android physical screen size?"
Browsing all 8 articles
Browse latest View live

Answer by Daniel Brauer

It took a fair bit of research, but in the end it was pretty easy. Hopefully this serves as a reasonable example of how to interact with Android's Java environment from within Unity. using UnityEngine;...

View Article



Answer by Waz

var widthInInches = Screen.width / Screen.dpi;

View Article

Answer by HarleysZoonBox

unity gives us most of the basic resolutions and there is no problem for me when i use Screen.width or height i check them against variables and adjust accordingly no java needed... just use stored...

View Article

Answer by ViicEsquivel

My C# solution float inch = Mathf.Sqrt((Screen.width * Screen.width) + (Screen.height * Screen.height)); inch = inch/Screen.dpi;

View Article

Answer by Daniel-Brauer

It took a fair bit of research, but in the end it was pretty easy. Hopefully this serves as a reasonable example of how to interact with Android's Java environment from within Unity. using UnityEngine;...

View Article


Answer by Waz

var widthInInches = Screen.width / Screen.dpi;

View Article

Answer by HarleysZoonBox

unity gives us most of the basic resolutions and there is no problem for me when i use Screen.width or height i check them against variables and adjust accordingly no java needed... just use stored...

View Article

Answer by ViicEsquivel

My C# solution float inch = Mathf.Sqrt((Screen.width * Screen.width) + (Screen.height * Screen.height)); inch = inch/Screen.dpi;

View Article

Browsing all 8 articles
Browse latest View live




Latest Images