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.

Vuforia persistent objects

Hi!

I am very new to hololens development, so I thought if anyone here could help me?

I made a project with Unity using Vuforia. I have six different image targets spread across our office. These targets work fine, but I'm having trouble understanding how to make these objects persistent if I close the app or even the device.

Unity has the WorldAnchor component, which I guess needs to be on either the image target or the 3D object. What is the next step?

Thanks!

Tagged:

Answers

  • If you are just backgrounding the app and then reopening it should maintain their positions.

    Closing the app will remove everything. If you need persistence between sessions you'll need to store the location of the objects locally and then reload them when the app starts.

    Taqtile

  • Ok, I'm trying to make this work with Unity's PlayerPrefs. I am saving the objects location on three different floats (x,y,z) and in Start() I'm setting the objects Vector3 to these floats. This however doesn't seem to work. I still have to re-trigger them with vuforia.

Sign In or Register to comment.