繁体   English   中英

Hololens的Unity Photon PUN连接错误

[英]Unity Photon PUN connection error with Hololens

我正在使用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上授予某些特定的网络访问权限吗?

似乎您没有给应用程序网络功能/权限。

为此,请转到Edit -> Project Settings -> Player

在“ Inspector窗格中,单击“ Universal Windows Platform settings图标,

Windows通用平台设置

向下滚动到“ Publishing Settings然后在“ Capabilities框中检查InternetClientInternetClientServer

Unity3D上的UWP功能

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM