- Home /
Where is Screen.Resolutions stored?
I'm currently trying to make my game have different types of resolutions, and run smoothly between all of them.
Altho, I don't know where the list of resolutions in "Screen.Resolutions" is stored? By default, when I print out everything in that list, only a single item pops out: 640x480 with 0 refreshRate.
This doesn't seem right, but am I wrong? If so, how can I achieve a list of defined resolutions, and then letting me change between them?
Answer by ArkaneX · Mar 12, 2014 at 01:57 PM
In Editor you only get 640x480. You'll get all supported resolution after you build and run your game.
I see... That was the problem. Thanks for telling me Arkane!
Answer by ChrisJoosten · Mar 12, 2014 at 01:51 PM
Don't you mean something like Screen.width && Screen.height?
Yes, but what I wanted is a list of the Screen.resolutions. So I can easily just SetResolution to the selected resolution.
But as default, Screen.resolutions contains only 1 item, and my problem is I don't know how to add more to this list, without program$$anonymous$$g it in code.