In WebPlayer it was possible to call method from javascript in Unity:
u = new UnityObject2(config);
u.getUnity().SendMessage(ScriptName, method, argument);
It is possible in WebGL?
In WebPlayer it was possible to call method from javascript in Unity:
u = new UnityObject2(config);
u.getUnity().SendMessage(ScriptName, method, argument);
It is possible in WebGL?
Possible, but just:
SendMessage(GameObject.name, method, argument);
(I was just rewriting from WebGL to WebPlayer and forgot to add u.getUnity() and wondered why it was not working
)
Thank you,
just
SendMessage(GameObject.name, method, argument) and everything is working.