Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

how to use sendmessage to call a unity function from html

$
0
0
The official doc says use SendMessage SendMessage ('MyGameObject', 'MyFunction', 'foobar'); But after I built a webgl and add SendMessage to the released index.html, I got "SendMessage is undefined". And I add this var u=GetUnity(); u.SendMessage ('MyGameObject', 'MyFunction', 'foobar'); then I got GetUnity is undefined How can I solve this problem

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>