Getting the same resolutions as the resolution dialog

Hi!

I am working on my resolution settings a bit for my game and I want the player to be able to switch resolution easily. I also want to be “fancy” and not use the resolution dialog but I still want to be able to get all the resolutions that would be fitting for the player’s monitor, like the resolution dialog. How would I do something like this?

I hope you understand this. I did my best to try and explain.

Thanks in advance!

(And before anyone says anything, yes I know you can set the resolution with Screen.SetResolution but that is not what I am after)

Screen.resolutions will give you a list of resolutions that the current monitor supports.