简体   繁体   English

如何不显示通过Hololens部署的UWP应用中的UI?

[英]How to not display UI from an UWP app deployed in hololens?

I have created an UWP app with UI created with XAML that has 2 parts. 我已经使用XAML创建的UI创建了一个UWP应用,该应用包含2部分。 One that executes on the Hololens and one that executes on a PC. 一种在Hololens上执行,另一种在PC上执行。

From the PC, you can see what the hololens camera sees. 在PC上,您可以看到全息摄像机的外观。 On the Hololens app, you dont need to see anything from the app. 在Hololens应用程序上,您无需从应用程序中看到任何内容。 No UI. 没有用户界面。

Currently, on the Hololens I see a window with the same UI that I see on the PC app, when I deploy it. 当前,在Hololens上,我看到一个窗口,该窗口具有与部署PC时相同的UI。 I need the app to execute on the hololens, but I dont want the hololens user to see any UI. 我需要该应用程序在hololens上执行,但我不希望hololens用户看到任何UI。

The reason I am asking this, its because I have used unity and holotoolkit there. 我之所以这样问,是因为我在那里使用了unity和holotoolkit。 When I enabled virtual reality under player settings, deployed on UWP, I achieved the thing that I am asking. 当我在UWP上部署的播放器设置下启用虚拟现实时,我实现了我所要求的。 So i know it can be done. 所以我知道可以做到的。 The question is how to do this in UWP app. 问题是如何在UWP应用中执行此操作。

The reason I am asking this, its because I have used unity and holotoolkit there. 我之所以这样问,是因为我在那里使用了unity和holotoolkit。 When I enabled virtual reality under player settings, deployed on UWP, I achieved the thing that I am asking. 当我在UWP上部署的播放器设置下启用虚拟现实时,我实现了我所要求的。 So i know it can be done. 所以我知道可以做到的。 The question is how to do this in UWP app. 问题是如何在UWP应用中执行此操作。

For UWP apps, you could not achieve this target. 对于UWP应用,您无法实现此目标。 If you want to run the UWP app, the window always will show. 如果要运行UWP应用,则始终会显示该窗口。 So, what you said "No UI" is impossible. 因此,您所说的“无UI”是不可能的。 When you enabled virtual reality under player settings, then you could see what the hololens camera sees directly. 在播放器设置下启用虚拟现实时,您可以看到全息摄像机直接看到的内容。 This should be a function of Unity IDE. 这应该是Unity IDE的功能。 This function is convenient for the hololens developers to develop their hololens apps. 该功能对于hololens开发人员开发其hololens应用程序非常方便。 Unity should has done some deep integration by some underlying SDK, but in UWP, you could not do it. Unity应该已经通过某些基础SDK进行了深度集成,但是在UWP中,您无法做到这一点。

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

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