- Home /
externalCall provide object-info?
Simple question: Imagine we have more than one unity-objects on the screen, if I execute the function externalCall() to communicate with my browser, can I somehow get information about what unity-object that sent it?
Thx in advance!
I removed my irrelevant answer but marius.treu replied to it some information:
that's not quite what I meant... it would be more like Application.ExternalCall(function,message,unityObject). If you embed an web-player-object into your browser you got an object created, which is referenced to a file what you access from. Like 'test.unity3d'. If you want to access it out of browserdriven javascript communication works like (unityobject).getUnity().send$$anonymous$$essage(function,message), the other way round should send itself by reference. The problem is that the file could be renamed, but the gameObject.name string wouldn't change...
Your answer

Follow this Question
Related Questions
Unity vertex limit BUT with the Web Player ? 0 Answers
Concerns about browser security due to making javascript calls to game from browser. 1 Answer
Web Player Disable Mouse Look 1 Answer
How to send textures native ptr from web player to NPAPI browser plugin? 1 Answer
Web player caching is not happening in only Safari browser. 0 Answers