Quantcast
Channel: Questions in topic: "command line"
Viewing all articles
Browse latest Browse all 123

Prevent Start of Standalone Player Based on Command Line Parameter

$
0
0
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.

Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>