- Home /
Question by
ABerlemont · May 26, 2014 at 04:23 PM ·
resolutionviewport
How to get viewport setup resolution
Hey !
I was wondering if it was possible to get, through script, the setup resolution of the game viewport ?
Screen.width/height and Camera.main.pixelWidth/Height only gives the actual current viewport size (based on how it's setup in the editor).
I need that to be independent of whatever the current viewport resolution is. Especially when working on resolution higher to what my desktop screen can handle (Yeah, i'm talking about you ipad retina displays ...)
Thanks !
2014-05-26_000434.png
(8.2 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613145937im_/https://answers.unity.com/themes/thub/images/avi.jpg)