AirConsole电话控制器屏幕未加载 [英] AirConsole phone controller screen not loading

查看:104
本文介绍了AirConsole电话控制器屏幕未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用AirConsole在Unity中建立了一个项目.我能够很快将一个简单的游戏组合在一起,但是此后我遇到了问题.我最初是在Mac上进行开发,然后切换到我的工作计算机(即Dell PC).在Mac上,我可以使用Unity中的模拟器测试游戏.由于我切换到PC,因此无法在调试模拟器中从手机连接到Web服务器.手机通过输入代码"屏幕,开发人员控制台发出连接噪音,但随后我的手机仅坐在正在加载..."屏幕上.

I've set up a project in Unity using AirConsole. I was able to put together a simple game pretty quickly, but I've since run into issues. I was initially developing on a Mac and then switched to my work computer which is a Dell PC. On my Mac I was able to test my game using the simulator in Unity. Since I switched to my PC I have been unable to connect from my phone to the webserver in the debug simulator. The phone gets through the "Enter the Code" screen, the developer console makes a connection noise, but then my phone just sits at the "Loading..." screen.

我已返回到Pong示例项目,以确认我的代码不是问题.我已经使用Chrome和AirConsole应用程序对手机进行了测试.我尝试暂时禁用防火墙,以防防火墙阻塞端口.如果我在浏览器启动模式" =虚拟控制器"中运行模拟器,则PC上的控制器可以正常加载,但仍无法与手机连接.我正在使用AirConsole v1.3.0.b,当我发布此文件时,它仍是最新版本.

I've reverted back to the Pong sample project to confirm that my code is not the problem. I've tested the phone using both Chrome and the AirConsole app. I've tried temporarily disabling my firewall in case my firewall was blocking the ports. If I run the simulator in Browser Start Mode = "Virtual Controllers" the controllers on my PC load fine, but I'm still not able to connect with my phone. I'm using AirConsole v1.3.0.b which was still the most recent version when I posted this.

推荐答案

解决此问题的步骤:

  1. 使用模拟器启动游戏.
  2. 确保模拟器的虚拟控制器已加载您的控制器.
  3. 在这种情况下,请尝试直接在手机浏览器中加载controller.html.假设您使用 http://在模拟器中运行游戏www.airconsole.com/simulator/#http://192.168.0.2:7834/,然后加入#后面的部分并附加controller.html.在此示例中,尝试加载: http://192.168.0.2:7834/controller.html 在您的智能手机上.请注意,此控制器将无法正常工作-只是尝试尝试AirConsole内部加载的页面是否正常工作.如果这不起作用,则说明您不在同一网络中,或者您的网络已激活客户端隔离(需要将其禁用).要解决此问题,请检查:在标准大学上使用Airconsole/开发人员的企业网络
  4. 如果这也可行,则在调用AirConsole构造函数之前,您可能会遇到JavaScript错误.使用chrome远程调试手机浏览器:
  1. Start the game using the simulator.
  2. Make sure the virtual controllers of the simulator load your controller.
  3. If that is the case try to load the controller.html directly in the phones browser. Assuming your run your game on in the simulator using http://www.airconsole.com/simulator/#http://192.168.0.2:7834/ then take the part behind the # and append controller.html. In this example try to load: http://192.168.0.2:7834/controller.html on your smartphone. Note that this controller wont be working - it's just to try if the page that AirConsole loads internally works. If this does not work, you are either not in the same network or you network has client isolation activated (this needs to be deactivated). To resolve this, check: Using Airconsole on a standard University/Corporate network for dev
  4. If this also works, you probably have javascript errors before the AirConsole constructor is called. Use chrome to remotely debug the phone browser: https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en

更新:这是Unity的详细指南

https://developers.airconsole.com/#!/guides/unity -ngrok

这篇关于AirConsole电话控制器屏幕未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆