---
title: "Comment by Patrick Ryan on \"QR Code tracking in the HoloLens\" | Hashnode"
description: "Just a heads up for anyone stumbling across this as of September 2021: UnityEngine.XR.WSA.WorldManager is deprecated so the line to obtain the rootSpatialCoordi"
url: "https://hashnode.com/posts/qr-code-tracking-in-the-hololens/604a7f27ad1cac7d577dfa06/comment/614cb11d544e242e0c93f3aa"
---

[Discussion](https://hashnode.com/posts/qr-code-tracking-in-the-hololens/604a7f27ad1cac7d577dfa06)

Comment [QR Code tracking in the HoloLens](https://hashnode.com/posts/qr-code-tracking-in-the-hololens/604a7f27ad1cac7d577dfa06)

[Patrick Ryan](https://hashnode.com/@patrickatkeylogic)

[Sep 23, 2021](https://hashnode.com/posts/qr-code-tracking-in-the-hololens/604a7f27ad1cac7d577dfa06/comment/614cb11d544e242e0c93f3aa)

Just a heads up for anyone stumbling across this as of September 2021: `UnityEngine.XR.WSA.WorldManager` is deprecated so the line to obtain the rootSpatialCoordinateSystem can be replaced with the following:

```
rootSpatialCoordinateSystem = SpatialLocator.GetDefault().CreateStationaryFrameOfReferenceAtCurrentLocation().CoordinateSystem;
```

[Shayne Kiekebosch](https://hashnode.com/@ShayneK)

[Oct 6, 2021](https://hashnode.com/posts/qr-code-tracking-in-the-hololens/604a7f27ad1cac7d577dfa06/comment/614cb11d544e242e0c93f3aa#reply-615d0161e16040649ad7e006)

Thanks for the message! I recently ran into this too doing a Unity upgrade. I should try and edit the post.
