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

Unity Standalone CommandLineArgs

$
0
0
Hey, I'm currently trying to adapt an App to react when being started via an Url. Everything works fine for the first startup or when not using single-instance (which however is no option). I can retrieve the parameters via `Environment.GetCommandLineArgs()` and adapt everything in the code accordingly. However when I activate single-instance these seem to never update, if the application is not already started by the Url. As far as I understand it, in VB there is the WindowsFormsApplicationBase.StartupNextInstance event to do exactly this (https://docs.microsoft.com/de-de/dotnet/api/microsoft.visualbasic.applicationservices.windowsformsapplicationbase.startupnextinstance?view=netframework-4.7.2). But I have sadly no Idea how to access this or what else might be available in Unity to achieve the same. Any help would be highly appreciated :)

Viewing all articles
Browse latest Browse all 123

Latest Images

Trending Articles



Latest Images

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