Hello,
Is there any way to get the Unity script to call a shell script either directly or via a plugin?
Is there any way to have Unity launch an external application?
Thanks
Hello,
Is there any way to get the Unity script to call a shell script either directly or via a plugin?
Is there any way to have Unity launch an external application?
Thanks
Process myProc = new Process();
myProc.StartInfo.FileName = "/Applications/Safari.app/Contents/MacOS/Safari";
myProc.Start();
That will start Safari on OSX. The basic layout is the same regardless of platform. If you want it to open a URL, just have it list the URL.
Process myProc = new Process();
myProc.StartInfo.FileName = "http://www.unity3d.com";
myProc.Start();
In the second example, it will be handled in accordance with the system’s configuration, which should use the default browser.
Awesome! I can feel the power
This seems pretty awesome!
Just make sure you’re using System.Diagnostics before running this command, and if doing so, remove or unambiguously use Debug.Log.
You can also do like this:
System.Diagnostics.Process.Start(“http://www.google.co.in”);