|
hello I need some help, For my game i need a menu button so when pressed it opens a web browser to my website but I dont know how to do it Please can someone help Thanks
(comments are locked)
|
|
hi dalekandjedi, here you didn't specify that which type of build you're trying with, if it's webplayer build, hope this link will help you. http://answers.unity3d.com/questions/50138/open-link-in-new-tab-from-webplayer-hosted-on-any.html it dosent work :( i would like it so it works on a 3d text and the player would be the web player
Apr 20 '12 at 04:23 PM
dalekandjedi
if you dont want to use GUI, you may take 3d text on a gameobject. make it click by OnMouseDown() method or some otherscript. inside of that you may give that Application.ExternalEval(). try it ...
Apr 25 '12 at 05:21 AM
sriram90
(comments are locked)
|
|
Is there a way to replace the 'http://' content with a variable and still allow the ExternalEval to work properly??? eg. public var linkURL = "http://www.google.com"; Application.ExternalEval("window.open( linkURL, '_blank');"); ... does not work So far I've been slightly unsucessful in overcoming this. Anyone know how to solve this issue???
(comments are locked)
|
