Open Another App Link With A Button in Unity

Hi, how can link a button to another app in Unity?

public void OtherGame()
{
#if PLATTFORM_ANDROID
Application.OpenURL("https://www.youtube.com);
#else
Application.OpenURL(“https://www.youtube.com”);
#endif

}


6458713--724018--unity help1.png

To another app? You mean to seperate unity projects app? You cannot do that, not from the inspector.

You only work on one unity app at one time inside a unity instance.

But I am not sure “app” is what you even mean, you talk about apps but your code is opening a link to youtube?

2 Likes

you mean to seperate unity projects app? yes i want to close this application and start another app in unity