【发布时间】:2017-05-16 13:10:12
【问题描述】:
我正在使用 Unity 和光子引擎 (PUN)。我以 DemoSynchronization-Scene 为例,测试了不同的设备。与所有其他设备的连接完全正常,但 Hololens 出现错误。
Connect() to 'ns.exitgames.com' failed: System.UnauthorizedAccessException: Access is denied.
A network capability is required to access this network resource
at Windows.Networking.Sockets.StreamSocket.ConnectAsync(EndpointPair endpointPair, SocketProtectionLevel protectionLevel)
at ExitGames.Client.Photon.SocketTcpNetFxCore.<ConnectSync>d__13.MoveNext()
我需要在 Hololens 上授予某些特定的网络访问权限吗?
【问题讨论】:
-
您需要注册并且需要获取应用程序 ID,这就是您获得访问被拒绝的原因
标签: c# unity3d hololens photon