Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

Load file from OneDrive directory,but the ENABLE_WINMD_SURRPORT is always false

I'm trying to develop a unity application for hololens and I need to load a text file as a data source to visualize at runtime.
My toolchain:
-- Mixed Reality Toolkit v.2.0.0 RC1
-- Unity 2018.3.12f1 personal
-- Visual Studio Community 2017 (15..9.11)
-- HoloLens OS v.10.0.14393.2125
-- Windows 10 v.18362.53
--Win 10 SDK 10.0.17763.0
My Unity Player setting:
Scripting Runtime Version:.Net 4.x
Scripting Backend:IL2CPP
Api Compatibility Level:.NET 4.x

I use these code to access the fileOpenPicker component to load file,

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using System;
using UnityEngine.WSA;
using UnityEngine.UI;


using Windows.Storage;
using Windows.Storage.Streams;
using Windows.Storage.Pickers;


public class fileLoad : MonoBehaviour


private FileOpenPicker openPicker;


void Start()
    UnityEngine.Debug.LogFormat("UnityThread: {0}", Thread.CurrentThread.ManagedThreadId);


    UnityEngine.WSA.Application.InvokeOnUIThread(OpenFileAsync, false);  


        UnityEngine.Debug.Log("ENABLE_WINMD_SUPPORT false");



but the result was always "ENABLE_WINMD_SUPPORT false".
What can I do?

Sign In or Register to comment.