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.
WorldAnchor.OnTrackingChanged is not fired
I'm trying to share a world anchor between multiple HoloLenses, but I am already failing to locate an anchor, because the OnTrackingChanged event is not fired. I am using the code from the UNetAnchorManager from the MixedRealityToolkit for my HoloLens app.
`private void ExportAnchorAtPosition(Vector3 worldPos)
// Need to remove any anchor that is on the object before we can move the object.
WorldAnchor worldAnchor = ObjectToAnchor.GetComponent();
if (worldAnchor != null)
// Move the object to the specifid place ObjectToAnchor.transform.position = worldPos; // Attach a new anchor worldAnchor = ObjectToAnchor.AddComponent<WorldAnchor>(); // Name the anchor exportingAnchorName = Guid.NewGuid().ToString(); Debug.Log("preparing " + exportingAnchorName); // Register for on tracking changed in case the anchor isn't already located worldAnchor.OnTrackingChanged += WorldAnchor_OnTrackingChanged; SpatialMapping.DrawVisualMeshes = true; // And call our callback in line just in case it is already located. WorldAnchor_OnTrackingChanged(worldAnchor, worldAnchor.isLocated); }`
I'm using spatial mapping. When I walk all over the room the map is almost complete, but still no event is fired.
My Unity Version is 2017.1.2. on Windows 10 16299.
BTW, I am experiencing strange issues with the use of Singletons. Whenever I use a class that extends Singleton with Singleton.Instance I get a null value. It is because when I run the app on the device the Awake methods are not being called. When I run the app in the Unity Editor the method Awake gets called correctly. Maybe something is wrong with Unity?
Any help is appreciated!