Hello everyone.

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.
Options

File i/o and Async Issues

Currently Using:
Unity 2017.1.0p5
VS 2017 15.3.2

So I'm trying to run code that I had working with older versions of Unity 5.5 and VS2015 before but doesn't currently with the two current versions I'm using.

KnownFolders allows me to get the CameraRoll path; but when I try to query it the thread gets stuck and nothing happens.

QueryOptions queryOption = new QueryOptions(CommonFileQuery.OrderByTitle, new string[] { ".png", ".jpeg", ".jpg", ".PNG", ".JPEG", ".JPG" });

queryOption.FolderDepth = FolderDepth.Deep;

List<StorageFile> PictureFiles = await Folder.CreateFileQueryWithOptions(queryOption).GetFilesAsync();

So it won't get past the await.
Is this just an issue with Unity and VS or am I doing something wrong.
Any help and advice is appreciated thanks.

Tagged:
Sign In or Register to comment.