in the index page,I have an object whose id is UnityObject:
and then, I use Unity’s JavaScript function SendMessage,it is ok in IE,but it cannot work in Firefox and Chrome。
I don’t know why。who can help me?
in the index page,I have an object whose id is UnityObject:
and then, I use Unity’s JavaScript function SendMessage,it is ok in IE,but it cannot work in Firefox and Chrome。
I don’t know why。who can help me?
look at the default js file thats used and linked on the unity side. there you will see functions to get the correct unity player object, otherwise you are forced to include two, cause there is a difference between object and embed due to IE still not being correctly w3c compliant