Quantcast
Viewing latest article 14
Browse Latest Browse All 123

Unity Standalone CommandLineArgs

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 latest article 14
Browse Latest Browse All 123

Trending Articles



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