- Home /
Prevent Start of Standalone Player Based on Command Line Parameter
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.
Your answer
Follow this Question
Related Questions
Player Screen Resolution 2 Answers
How to run a script to only 1 player in a multiplayer fps 1 Answer
Player names all displayed as local player 1 Answer
Clicking on object to teleport player? 1 Answer
Distance destroy object 3 Answers