与Hololens的Unity Photon PUN连接错误

问题描述 投票:0回答:1

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

c# unity3d hololens photon
1个回答
0
投票

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

为此,请访问Edit -> Project Settings -> Player

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

Windows Universal Platform Settings

向下滚动到Publishing Settings并在Capabilities框内查看InternetClientInternetClientServer

UWP capabilities on Unity3D

© www.soinside.com 2019 - 2024. All rights reserved.