- Home /
Windows. What is best way to avoid launch of multiple instances of the same application?
What is best way to avoid launch of multiple instances of the same application at Windows systems?
Right now we're terminating additional application launch through process identifier. But it doesn't fork fast enough. Application copies terminated only when our first scene is loaded.
Answer by ricardo_arango · Apr 24, 2013 at 11:24 AM
You can use the -single-instance command line argument:
http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html
Oh, I was unaware Unity had a built-in way to do this. :) Awesome. I wrote another answer that offered a totally complicated way to do this, but deleted it again in light of this information. :)
Well, we supposed to deliver our game to end user. but to execute command line parameters we have to make .bat file or create another exe. Or there's exist another way to run arguments?
Your answer
Follow this Question
Related Questions
Accessing local system ( File Browser ) 2 Answers
System.Diagnostics.Process consistently wrong 0 Answers
Multiple camera/view on separated windows 0 Answers
Docking Windows using EditorWindow 0 Answers