Home > front end >  MRTK Photon Unity Networking 'AnchorModuleScript' namespace not found
MRTK Photon Unity Networking 'AnchorModuleScript' namespace not found

Time:04-22

While following the mrtk tutorial on multi-user capabilities, there has been one CS0246 error that I haven't been able to avoid.

After importing PUN 2 from the asset store, all CS0246 errors from importing the MultiUserCapibilities package are resolved except for Assets\MRTK.Tutorials.MultiUserCapabilities\Scripts\SharingModuleScript.cs(7,17): error CS0246: The type or namespace name 'AnchorModuleScript' could not be found (are you missing a using directive or an assembly reference?).

I have followed this tutorial with my current project on Unity 2020.3.29f, the same project updated to Unity 2021, and a blank Unity 2020 LTS project following only the essential steps (switching build platform, importing MRTK foundation and OpenXR through the feature tool, and setting up MRTK and OpenXR in Unity). All of them only throw this one error. I also updated my Windows SDK and restarted my PC as many other solutions suggest.

My best guess is that this is something on Microsoft's end.


  • Windows 10 21H2 (OS Build 19044.1645)
  • Windows SDK version 2104 (10.0.20348.0)
  • Unity 2020.3.29f1
  • MRTK 2.7.3
  • OpenXR 1.4.0

CodePudding user response:

Install this Unity package.

Microsoft assumes you've completed the 'Use Azure Spatial Anchors to anchor objects in the real world' tutorial (in which you download that package on the third page), which is part of the 'HoloLens 2 fundamentals' tutorials. It's also stated that having followed those tutorials is part of the prequisites to the multi-user capabilities tutorial: screenshot.

  • Related