- Home /
 
Detect if Android screen is widescreen?
Is it possible to detect if an Android screen is widescreen, without manually checking each possible resolution for it?
               Comment
              
 
               
              Answer by MiKo51 · Jun 06, 2013 at 02:39 AM
i'm not exactly sure what you mean by widescreen but you can check the orientation of the screen using:
 Screen.orientation
 
              Answer by cultzone · Sep 15, 2020 at 02:08 AM
here re:
 using UnityEngine;
 
 public class ExampleScript : MonoBehaviour
 {
     void Start()
     {
         Resolution[] resolutions = Screen.resolutions;
 
         // Print the resolutions
         foreach (var res in resolutions)
         {
             Debug.Log(res.width + "x" + res.height + " : " + res.refreshRate);
         }
     }
 }
 
              Your answer
 
             Follow this Question
Related Questions
How do you clamp a camera by mobile width? 2 Answers
Android - Camera orientation 1 Answer
How can I fix the screen disturbance of android 4.1/4.2 ? 0 Answers
why my unity games run on android devieces,the screen will be wrong. 0 Answers
Splitting the game view - part camera, part opaque navigational panel at runtime 1 Answer