I’m using my unity app in the web player to launch web pages but I need to launch a new page or tab and not navigate away from the unity app.
Any ideas?
I’m using my unity app in the web player to launch web pages but I need to launch a new page or tab and not navigate away from the unity app.
Any ideas?
Use Application.ExternalEval to call a Javascript function which opens a window. (There’s probably a cleaner way, but this came to mind)
Application.ExternalEval(“window.open(‘http://your.com/url/here’,'window name’,‘width=100,height=200’)”);
Thanks I’ll give that a shot.
How can I pass a variable for the url I want to load? I tried a few things, but had no luck.
Thanks!
Application.ExternalEval("window.open('" + escapedUrlString + "','window name','width=100,height=200')");
that did the trick. Its been way to long since I used Javascript…
Thanks!