- Home /
Communication between Google Chrome browser and unity 3d does not work.
I have the following code working perfectly in Firefox browser.
//unity
private var messages : String;
Application.ExternalCall ("user", msg);
//Called by the browser to display a message in unity
function ReceiveMessage( msg:String ){ messages = msg + "\n" + messages; }
function OnGUI(){
//Output GUI.TextArea( Rect(10,62,280,378), messages);
}
function Update(){
guiText.text = messages;
}
Browser
function user( msg) { //alert( msg );
uniObj.msg( "scripts", "ReceiveMessage", "?php echo$user;?>" );
}
but for some strange reason does not work in Google Chrome, and tried everything and I can not find the solution, anyone know why this happens? I appreciate your help.
It works in firefox, internet explorer, safari for both $$anonymous$$ac or PC, but Google Chrome does not work on either platform
Your answer
Follow this Question
Related Questions
Browser to unity communication 2 Answers
Passing variable into Unity function from browser JS via ActionScript 1 Answer
UnityObject callback function never runs 2 Answers
change player possition via url 0 Answers
Need help for simple moveforward function in Unity Web Player and browser communication 0 Answers