I'm currently trying to send information to a precompiled unity3d object from my html web page. What I did is the following.
I created a project with Unity3D and built it as a webplayer (not streamed). I tried to follow the tutorial on Unity page ( http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html ) but nothing happened with my GetUnity().SendMessage(...).
As debug-like solution, I tried to put document.write("...") around the SendMessage and I discovered that it cannot apply the SendMessage command (it only prints the "..." that is before the SendMessage call).
asked May 26 '10 at 07:26 AM
so in unity3d.. on start() method
and then in unity3d, on the same script as the first call, create another function
answered Jun 25 '10 at 01:40 AM
this is because the web player have not fully loaded, and yet you call the sendmessage function. there is some tutorial somewhere, i also am looking for it while i am writing this post.
i will post the link if i find it.
answered Jun 22 '10 at 07:43 AM