I combined unity client app in one IE page
So when I use unity client touch something
I want to send message to the js in HTML where the unity client app was combined.
How could I do that with c# code?
many thanks
I combined unity client app in one IE page
So when I use unity client touch something
I want to send message to the js in HTML where the unity client app was combined.
How could I do that with c# code?
many thanks
You need to use Application.ExternalCall. There is some example code and some HTML/JS on the manual page for this function.
external question:
Sometime when I call some function() in unity
It went wrong
But it goes well when I call the function in HTML’JS
thanks
The web JS is not related to unity “JS” (unityscript) in any way other than calling in through SendMessage (in which case it has to fullfill the SendMessage requirements) or calling out through ExternalEval
Could you potentially explain in more detail what you do and does not work?