我正在尝试为Android和iOS设备构建一个WebGL Unity游戏,但我不确定如何。 我可以在PC上运行游戏,因为Build Settings中的Build&Play选项会自动为我完成。 但是如果我想在Android设备上玩游戏呢?
为了澄清,我不打算创建一个Android版本(即一个APK文件)。 我正在尝试创建一个WebGL构建并在Android设备的Web浏览器上测试这个WebGL构建。
I'm trying to build a WebGL Unity game for Android and iOS devices but I'm not sure how. I can run the game fine on PC because the Build & Play option from the Build Settings does this automatically for me. But what if I want to playtest the game on an Android device?
For clarification, I am not looking to create an Android build (i.e. an APK file). I'm attempting to create a WebGL build and playtest this WebGL build on an Android device's web browser.
最满意答案
要在Windows中的移动设备上使用WebGL导出,请安装IIS。 在Linux中,使用Apache创建Web服务器并将导出的文件夹上载到Web服务器的www根文件夹。 然后在移动浏览器中调用您的ip:port / yourSiteName 。
请查看此链接,了解在IIS中上传的演练
For using WebGL export on mobile devices in windows, install IIS. In Linux, use Apache to create a web server and upload the exported folder to the www root folder of the web server. Then call your ip:port/yourSiteName in a mobile browser.
Check this link for a walkthrough of uploading in IIS
更多推荐
发布评论