- Home /
Is it possible to run another program from a Unity executable?
I imagine the answer is going to be NO, for obvious reasons, but I'm looking for a way to sync an external audio player so that it starts at the same time as a Unity VR experience. This would be in relation to this project, where it would be another way to get around the limitations of Unity's audio capabilities.
Any suggestions are much appreciated!
--Rev
Answer by Happeloy · Sep 18, 2019 at 06:55 PM
Starting another program will be platform dependent. On a Windows machine, a simple call to System.Diagnostics.Process.Start("path-to-file.exe")
will suffice.
$$anonymous$$uch obliged for the response - lots of good information here https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=netframework-4.8 once I knew what to look for. Cheers!
Answer by YetAnotherKen · Sep 18, 2019 at 06:47 PM
Yes, that would be quite easy to do with a script. At least with C# I know you can start other programs. You would have to handle the synchronization yourself through code, but that would not be overly hard.
Thanks so much for this response! Not entirely sure how I'd handle that synchronization (or what it is...!) but I'm on the road to learning now. Cheers!
Your answer
Follow this Question
Related Questions
TextMesh sync player names with other players 1 Answer
How many audio channels and simultaneous video textures can be played in sync simultaneously? 0 Answers
Play(offsetInSamples) acuracy - still cannot get it to work perfectly 5 Answers
Random FPS player Audio when player kills enemies 4 Answers
Log exact time that sound is played 0 Answers