A Unity project for Microsoft Holographic platform isn’t very different to a Unity project for other platforms, with a few notable exceptions:
要了解更多信息,请参阅 Microsoft 的 Unity 性能建议 (Performance recommendations for Unity) 文档。
The following capability flags are provided under Player Settings > Publishing Settings. System features fail if you don’t enable the appropriate capability flags.
Not all of the publishing settings below are specific to Windows Holographic. For more information, see Unity’s documentation on WSA Player Settings.
PicturesLibrary | 用于 PhotoCapture 捕获摄像机取景框功能。 |
MusicLibrary | 用于 VideoCapture 音频录制功能。 |
VideosLibrary | 用于 VideoCapture 视频录制功能。 |
WebCam | 用于 PhotoCapture 和 VideoCapture。 |
Microphone | 用于语音识别。 |
SpatialPerception | 用于空间映射。 |
构建完项目并准备好进行测试后,请将项目导出到 Visual Studio 解决方案。要针对 Windows Holographic 进行构建,请选择 File > Build Setting 下的以下选项:
Under Player Settings > Other Settings:
Checking the Unity C# Projects checkbox includes your scripting files in their own project in the generated solution. This allows you to conveniently edit and debug your scripts without needing to re-export from Unity. A re-export is only required if your project settings or content change.
请参阅 Microsoft 关于导出和构建 Unity Visual Studio 解决方案 (Exporting and building a Unity Visual Studio solution) 的文档以了解更多详细信息。