Unity 3D- OpenURLvariable

Informations relatives au logiciel de 3D temps réel Unity
yann.minh
Site Admin
Messages : 1160
Inscription : dim. févr. 11, 2007 7:44 pm

Unity 3D- OpenURLvariable

Message 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");


  } 

} 
Répondre