How to set resolutions in a game?


Does anyone here know how to do it correctly?

Resolution.width and Resolution.height are read-only (and not static values), so they can’t be set to new values. In fact, the more-accessible (static) Screen.width and Screen.height are both read-only as well.

You’re probably looking for Screen.SetResolution().