unity webgl与 js 交互
前言
最近发布到 webgl 平台还是有很多坑 需要注意 。
一、发布webgl 方式
第一种方式:
1,点击 unity buildsetting 页面 build and run
第二种方式:
搭建一个springboot 服务器 然后把 build出来的 三个文件 放在

访问:
http://localhost:8080/Web/index.html
二、unity 与js 交互 架构
定义js 方法
var myPlugin =
{
**//加入自己的方法
// 这里写的方法 不要有lamda表达式 试过 编译不了
//
**
UpLoad: function()
{
}
}

最低0.47元/天 解锁文章
1240





