Launching an external web browswer from click w/ in game...

I’m looking to use the Unity 3d engine for an architectural project however I have a question about a potential goal.

I need to be able to click on a sign or item that can launch an external web browser from within game. Is this possible?

this would be a visualization running w/ the web plug-in.

Thanks in advance!

So sorry - I did a quick search of the docs and found my answer. For others, it looks like the following will do the job -

Application.OpenURL

I wonder though, if you are using the web plugin if it would be possible to have it open in a new window rather the one the game is loaded in?

If you are running in a standalone, there is a system call you can use to open a browser window. Can’t remember it offhand, but GC:Palestine uses it for online docs, so I know it works.

If you’re already in a browser, you can call a javascript function in the HTML page. This can then open another window.

In both cases, the answer is yes :wink:

It will be opened in the same window. You can try just executing some javascript (via ExternalEval) to open a new window; but I think that can be hard on most browsers - they do have popup killers nowadays.

Hey, Thanks for the response. Its going to be a web plugin version and we can let customers know to turn on off the popup blocker. Cool to know you can call an inline javascript function.