Open desktop game from browser

Hi all,

I want to implement something like Battlelog. Basically, I want the user to be able to choose some settings at a website. After pressing play, the game should open with the selected settings. Of course, the game should be downloaded first. Ideally, the game should not be able to open if you don’t go through the website (or it should display something like “please open the game via the website”).

Is this possible in Unity?

What you could do is have your game bring up a website when you run it - I’ve seen a lot of games do that. There’s at least one package on the Asset Store for displaying an HTML 5 browser in a RenderTexture in Unity you could use.

Battlelog works by installing a plug-in into your web browser, that plug-in handles everything. Here’s what Battlelog does:

(Found here: html - How does Battlelog launch games from browser? - Stack Overflow)
[/quote]

Thanks for your reply. This however indicates it should be possible without a plugin. Any ideas?

What you’re wanting / needing to do is to register a URI scheme for your application so you can tell the OS to open your application when that URI is clicked. For instance: “binoculars88://your.game.whatever”

You’ll want to save your settings to a remote server and use your game to go fetch them. I’m not sure if it’s possible to use this URI scheme to pass custom data into a Unity game or not. Instead, you might have to create a custom console application that launches instead… writes those settings to a file and then launches your game.