I'm looking for a solution to the following problem:
I need to prevent the standalone player from starting, if a specific command line parameter is missing.
Of course, I can check System.Environment.GetCommandLineArgs() anywhere in the first scene which still goes through unity splash screen before quitting. Is there an elegant solution to quit even before the splash screen appears? I don't need any fancy solution, no warnings, no windows nor anything else. It should just quietly quit.
I'm using Unity Personal 2017.3.
↧