There ist no SendMessage("MyGameObject","MyFunction","SomeValue") - Function in UnityConfig.js anymore? Now, how can I interact with the unity-scene from the html-page, without custom URL parameters? Or have i missed something? (Unity 5.2.1f1) edit: however, it works now with SendMessage("MyGameObject","MyFunction","SomeValue") from html-function
It's in the build_name.js these days: Code (JavaScript): function SendMessage(gameObject,func,param { if(param===undefined)Module.cwrap("SendMessage","void",["string","string"])(gameObject,func); else if(typeof param==="string")Module.cwrap("SendMessageString","void",["string","string","string"])(gameObject,func,param); else if(typeof param==="number")Module.cwrap("SendMessageFloat","void",["string","string","number"])(gameObject,func,param); else throw""+param+" is does not have a type which is supported by SendMessage." }