与Hololens的Unity Photon PUN连接错误

时间:2017-05-16 13:10:12

标签: c# unity3d hololens photon

我正在使用Unity和Photon Engine(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上授予一些特定的网络访问权限?

1 个答案:

答案 0 :(得分:0)

好像你没有给你的应用程序网络功能/权限。

为此,请转到char

Edit -> Project Settings -> Player窗格中,点击Inspector图标,

Windows Universal Platform Settings

向下滚动到Universal Windows Platform settings并在Publishing Settings框内查看CapabilitiesInternetClient

UWP capabilities on Unity3D