Saving an Image to Photos Folder In hololens App

流过昼夜 提交于 2019-12-04 12:01:43

It seems to be that it is not possible to save directly in the camera roll folder and there is no picture library on the HoloLens.

There is the same question here: https://forums.hololens.com/discussion/1458/capturing-photo-in-unity-and-saving-to-disk

I tried the workaround and it works fine. Just move the saved image to the camera roll folder.

#if !UNITY_EDITOR && UNITY_WINRT_10_0
        var cameraRollFolder = Windows.Storage.KnownFolders.CameraRoll.Path;            
        File.Move(_filePath, Path.Combine(cameraRollFolder, _filename));
#endif
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!