Is it possible to run unity through command-line with a custom resolution and quality?


I want to build my custom resolution dialog at the startup, But I don't know how to run my project with my custom settings of resolution and quality. Is it possible to run unity projects from command-line with some flags to make it run at specific resolution and quality?

You could use System.Environment.GetCommandLineArgs() to get the command line arguments (as a strng array), then parse them, check if it has your resolution arguments, then use Screen.SetResolution to set the new resolution

You'll most likely want to do that in Awake on a script in the first scene