I am looking for a way for my editor to see whether its an additional instance or the main window, what would be an easy way?
Simple explained, because mppm starts an new instance with the current open scenes, and our start scene is always empty, it runs a startup sequence. but this is not duplicated to the extra instance, so i need to manually trigger it from the empty scene, but i do not want to trigger the sequence again on my main instance.
I also use 1.3, but I want to give my users the options to run it with Playmode scenario or default mode.
Tags is one way, but i’d like to reduce the amount of setup needed for others that use our package.
Simply just looking for a simple way to do a check – if extra instance do code…
I did find this, is this the reliable way, or is there an better one you have ready?
string[] args = Environment.GetCommandLineArgs();
bool isVirtualClone = Array.Exists(args, arg => arg == "--virtual-project-clone");
Thanks!