c# - 有没有办法在 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
问候
解决方案
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.
推荐阅读
- java - 获取 Varbinary 作为字符串
- python - 通过 for 循环更新数据帧
- angular-services - Angular8 http 和服务的误解
- javascript - 格式化字符串以显示 \n 并为制表符添加空间
- c# - .net 标准如何杀死所有子进程
- c# - 方法优先级新与覆盖错误
- javascript - 所有行和列总和相等的二维 4x4 数组
- laravel - 在 laravel 上的创建功能上传递 ID 中找不到视图
- javascript - 在禁用 useCapture 的 DOM 键事件上与 preventDefault() 混淆
- python - 没有名为 ogr 的模块