Page 1 sur 1

Unity 3D- OpenURLvariable

Publié : jeu. avr. 28, 2011 12:21 am
par yann.minh

Code : Tout sélectionner

var siteweb = "";

   

function OnMouseDown () { 

   Debug.Log("livre clique"+siteweb);
  if ((Application.platform == RuntimePlatform.OSXWebPlayer) || (Application.platform == RuntimePlatform.WindowsWebPlayer)) { 
   //var siteweb : WWW = new WWW (url);
    Application.ExternalEval("window.open('siteweb');"); 
    
  } else { 
       Debug.Log("livre en mode editeur");
    Application.OpenURL("siteweb");


  } 

}