Quantcast
Channel: Answers for "Application.ExternalEval - variable for links to reuse for multiple objects"
Browsing latest articles
Browse All 4 View Live

Answer by Bunny83

Don't mix up different contexts. Unity's scripting environmant is completely seperated from the website the player runs in. You can't use a variable defined in Unity in webpage javascript, but you can...

View Article



Answer by lcn75

here the solution: var setURL : String = "http://www.google.it"; function OnMouseDown():void { Application.ExternalEval("window.open('" + setURL + "')"); } thank you all!

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images