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.

How To Load fbx From One Drive ?

HI All,

How to load fbx or obj from one drive ... ? i open One Drive use of FilePicker and select fbx file. but always got www.assetBundle is null.

public void DownloadImage(string url)
{
StartCoroutine(CoTest(url));
}

IEnumerator CoTest(string url) {
    WWW www = WWW.LoadFromCacheOrDownload(url, 5);
    yield return www;
    if (www.error != null) {
        Debug.Log("Error" + www.error);
    }
    else {
            myassetbundle =www.assetBundle;           
            var request = myassetbundle.LoadAllAssets(typeof(GameObject))[0];
            yield return request;
            GameObject modle = request as GameObject;
            myassetbundle.Unload(false);
            var obj = GameObject.Instantiate(modle);
            obj.transform.localPosition = new Vector3(0, 0, 2);
            obj.transform.localScale = new Vector3(1, 1, -1);
    }
}

Thanks,
Ankit

Answers

Sign In or Register to comment.