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.

Trouble loading files using unity's www on the Hololens

~~Hi guys/gals, I can't get unity to load a file that exists on the Hololens app's local persistent storage.
Here's my code:
IEnumerator GetClip(string fileName)
if (File.Exists(GetFilePath(fileName)))
Debug.Log(fileName + " clip found in resources folder, playing that");
return true; `
using (WWW www = new WWW("file:///" + GetFilePath(fileName)))
yield return www;
if (www.error!=null){
Debug.Log("www error is: " + www.error);
Debug.Log("www says: " + www.text);
audioSource.clip = www.GetAudioClipCompressed(false, AudioType.OGGVORBIS);
Debug.Log("Playing clip" + fileName);



private string GetFilePath(string fileName) {
Debug.Log("Returning path: " + Path.Combine(Application.persistentDataPath, fileName));
return Path.Combine(Application.persistentDataPath, fileName);

My output is:

Returning path: C:/Data/Users/andre/AppData/Local/Packages/MixedRealityToolkit-Unity_zbb2d34ez0get /LocalState\greetings%21.ogg greetings%21.ogg clip found in resources folder, playing that www error is: 404 Not Found www says:
I've logged onto the hololens file explorer and the file is there and I can play it on my media player, so it should work!~~

Sign In or Register to comment.