How to set resolutions in a game?

199831-help-3.png

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().