Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Possible to run another app from Unity app

Discussion in 'Windows' started by redmotion_games, Oct 14, 2018.

  1. redmotion_games

    redmotion_games

    Joined:
    May 6, 2013
    Posts:
    84
    A client of mine is asking if it is possible for a Unity app to open another app on Windows UWP and for that app to open the unity app (depending on which is opened first by the user).

    Has anyone tried to do these two things in the past? And if so, do you have any advice on the approach/method you used to do this?

    Many thanks in advance.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    It is, but only if you can control code in both of them. You need to implement a protocol activation handler in the app you want to launch and then use it from another app to launch it.
     
  3. redmotion_games

    redmotion_games

    Joined:
    May 6, 2013
    Posts:
    84
    Thanks, good to know.

    If I was developing both applications in Unity what code/libraries would I use to do this? Would it be done with unity script or would it be done once the UWP app was exported to Visual Studio?

    Many thanks again.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645