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.
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!