首页 > 解决方案 > 有没有办法在 hololens 2 应用程序中打开不同的选项卡?

问题描述

我曾经Application.OpenURL("www.google.uk")打开一个网站。这可行,但如果我尝试打开更多 URL,则只有一个会保持打开状态。

我需要一种打开更多标签的方法。

这是我的 foreach,我需要使用上面提供的 id 打开不同的选项卡。

foreach ( var ids in mehrerenids)
        {   
         Application.OpenURL($"LINK/{ids}");
        }

Unity 2019.4.25f1 HoloLens 2

问候

标签: c#unity3duwphololens

解决方案


Launching multiple tabs by looping code at the same time is not supported right now, it always launches only one Edge window, and only one tab shows in it.

Even though, UnityEngine.WSA.Launcher.LaunchUri(uri, false) can open the weblink and avoid the system suspend your app is by launching a flat browser window directly inside your unity app. But it still always holds only one slate at the same time.


推荐阅读