Hi everybody ! I would like to know how can I open an URL in an other window (like html "target='blank'") Thanks for your attention Gul
JavaScript: winRef = window.open( URL, name [ , features [, replace ] ] ) It's target="_blank" just FYI. target="blank" will work once, and the second time will open the second URL in the first window. target specifies the frame in which to open the url, blank just becomes a frame named "blank".
hi ! Thanks for the reply ! I try your script,but,it's the same... my project is a "web project" and when I click on a link (with : Application.OpenURL) the page replace my "web project"'s page... How can I do for adding a new window ? Gul
Yeah, the documentation for that function warns it will blow you away in a web player. http://unity3d.com/support/documentation/ScriptReference/Application.OpenURL.html I'm trying to do the same thing, and I think the better choice is http://unity3d.com/support/documentation/ScriptReference/Application.ExternalEval.html As in, run a line of JS that does a window.open. I'll post again if I get this working in both a standalone and a web player.
Yeah !!! I'm gonna try it now ! I did a little "parallel way" to make this,it was not the great solution, I simply open the "unity wev project" in an other window of my site... Like a loop: Code (csharp): do(window.refresh, unityWebProject) while clicking.inALink Thanks for the reply Gul
The search feature is your friend as this exact topic was discussed just over a week ago. Application.OpenURL with a new window