I have sent my user with the Application.OpenURL
. And now I want to bring the program back to unity in the foreground.
Is there any way to do this without plug-in?
Thank you.
If you are using Unity 3D in Windows, then after calling the application See the code below. Open URL (...):
[DllImport ("user32.dll")] Personal static extern bool SetForegroundWindow (IntPtr hWnd); Var prc = Process.GetProcessesByName ("..."); // Get the process of Unity, or var prc = Process.GetCurrentProcess (); If (PRC Lang> gtc: 0) SetongGondo Window (PRC [0]. Menwindhandal);
No comments:
Post a Comment