unity發佈安卓 與發佈webGl(html5)的區別

web運行調試

使用 nginx

鏈接:https://pan.baidu.com/s/1uLS1cNoEnzjBHF7s7IxgNg 
提取碼:x016 


本地調試:

解壓後打開conf/nginx.conf

然後將項目放入htm文件夾下

然後輸入 需要打開的.html文件   例如:  http://localhost:8080/webLightUp/index.html

 

外網調試:

註冊安裝natapp

https://blog.csdn.net/qq_33922980/article/details/90244160

將外網網址修改調本地字段   例如:  http://wjgstm.natappfree.cc/webLightUp/index.html

 

 

使用工具:unity2018.4.6f1

對於單機類遊戲大部分功能可以直接轉換,可直接使用。

問題1:Unable to preventDefault inside passive event listener due to target being treated as passive 

解決:https://blog.csdn.net/lijingshan34/article/details/88350456

問題2:EventTrigger 會觸發連續點,添加擡起判斷,每次點擊只運行一次

問題3:XMLHttpRequest cannot load http://localhost:81/api/. No ‘Access-Control-Allow-Origin‘ header is present on the requested resource. Origin ‘http://localhost:53784‘ is therefore not allowed access.

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章