Skip to content

Instantly share code, notes, and snippets.

@king-panda
Last active August 29, 2015 14:20
Show Gist options
  • Save king-panda/9de4a9c31a784fa7a8cf to your computer and use it in GitHub Desktop.
Save king-panda/9de4a9c31a784fa7a8cf to your computer and use it in GitHub Desktop.
【Unity】Webページ側からWebGLの関数を呼び出す ref: http://qiita.com/kingpanda/items/d678ae888d66b3103931
<center>
<button>スーパー玉出</botton>
</center>
var s = document.querySelector("button");
s.addEventListener("click", function() {
SendMessage("sample", "tamaide");
});
var tama : Transform;
function tamaide () {
Instantiate(tama,transform.position,transform.rotation);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment