Can you start another application by running an Unity project? (using a proxy dll)


I’m trying to create a link between Unity and a traffic simulation program (Vissim).

Vissim has it’s own proxy to communicate with Unity.

I’m now trying to run Vissim via an Unityscript.

The scripts are stated below.


 public void Connect()
            Debug.Log("Loading " + networkFileFullPath);
            if (!DrivingSimulatorProxy.Connect(900, networkFileFullPath, null)) 
                Debug.LogError("Could not establish connection to VISSIM");

            Debug.Log("Network loaded. Starting simulation");
            loaded = true;


[DllImport("DrivingSimulatorProxy.dll", EntryPoint = "VISSIM_Connect", CharSet = CharSet.Unicode, SetLastError = true)]
        public extern static bool Connect(ushort versionNo, string networkFileName, string snapshotFile);

When i run my Unity project it only gives me the message:
Loading C:\Users.…\Network.inpx

And nothing happens.

How can i solve this?

The DrivingSimulatorProxy.dll is located in the project directory.

The full files can be found on this github: GitHub - fcl-engaging-mobility/UnityScripts
(In the /Assets/Scripts/Vissim folder)

Wish I could help, but I’m trying to figure out how to do this as well - any chance you figured it out?