x


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.

more ▼

asked Aug 03 '12 at 10:13 PM

Andr3s gravatar image

Andr3s
18 2 8

Mac or PC?

Aug 04 '12 at 12:20 AM DaveA

It works in firefox, internet explorer, safari for both Mac or PC, but Google Chrome does not work on either platform

Aug 04 '12 at 12:40 AM Andr3s
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x128
x53

asked: Aug 03 '12 at 10:13 PM

Seen: 324 times

Last Updated: Aug 04 '12 at 12:40 AM