【问题标题】:Unity Photon PUN connection error with HololensUnity Photon PUN 与 Hololens 的连接错误
【发布时间】: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


【解决方案1】:

您似乎没有为您的应用提供网络功能/权限。

为此,请转至Edit -&gt; Project Settings -&gt; Player。

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

向下滚动到Publishing Settings 并在Capabilities 框内选中InternetClient 和InternetClientServer。

【讨论】:

    猜你喜欢
    • 2015-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多