How to open Unity from URL

Hi, i want to open my unity program with a URL, like for example, if you go to “vscode://” it opens Visual Studio Code, so i want to do that in Unity, you open “yourgame://” and open my unity game, if you can help me, thanks a lot, i wanting to do that for a long time, thx

The second image says: Open Visual Studio Code? A website wants to open this program. Cancel. Open Visual Studio Code


7079857--842293--imagen_2021-04-26_220853.png

You need to register a protocol with the host OS. These differ depending on what platform you’re on. Here’s a tutorial for Windows, OSX, and Linux: Help

You would want to install the protocol as part of the game installation process or on first run.

You’ll also want to provide the user with a method of uninstalling this feature if they don’t want it anymore or uninstall the game.

2 Likes

Thank You a Lot, i go to try it :smile: