Screen.resolutions.length returns 1 (640x480)

I am trying to write my own in game resolutions setting menu so I can hide the startup dialog and restrict certain resolutions.

When I try to use the resolutions array of Screen it always returns 1 instead of an array of all supported fullscreen modes as per this documentation.

I tried this in Awake, Start and Update and it always returns 1.

It’s always just 640x480 in the editor.

–Eric

OK, I was wondering if it might be something like that but I didn’t test it. Thanks Eric!