The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Unable to save the captured photo in hololens app
I'm attempting to capture a photo inside my hololens app. It is working but it saving the image in device portal . I want to save the image in hololens app so that I can see it in my photos on the hololens. i have given the filepath as: string filePath = System.IO.Path.Combine(Windows.Storage.KnownFolders.PicturesLibrary.Path, filename); for storing the photo in hololens app but here i am getting error: the name WINDOWS does not exist in the context.
and also i have tried with one more code:
******#if !UNITY_EDITOR && UNITY_WINRT_10_0
var cameraRollFolder = Windows.Storage.KnownFolders.CameraRoll.Path;
File.Move(_filePath, Path.Combine(cameraRollFolder, _filename));
endif
but the namespace which i am using is not supporting.
please anyone help me in this. Thanks in advance.
Answers
I think the device portal is just a way to view the images stored on the device. I don't believe the device portal has its own storage capacity.
I think you want to use UNITY_WSA instead of UNITY_WINRT_10_0 but I am not sure if that is causing your problem.
This thread may be helpful as well:
https://forums.hololens.com/discussion/9394/cannot-access-hololens-camera-roll-from-unity-app
Taqtile