Meet ”error CS0246: The type or namespace name 'AnchorModuleScript' could not be found“ in PUN tutorial

Scarlett Wangle 41 Reputation points
2023-03-15T07:39:15.9933333+00:00

I'm right now trying the PUN tutorial at the link:

Multi-user capabilities tutorials

It says that all the CS0246 errors should be solved after I finish the step "Importing the PUN assets". However, for me, there is still one error remaining:

"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 think I've finished all steps before. I tried to restart everything, but it didn't work. I checked the packages and failed to find "AnchorModuleScript". It bothers me a lot, and I can't proceed with the following steps unless I solve this; please give me some advice, thanks!

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
382 questions
{count} votes

Accepted answer
  1. Zuocheng Wang - MSFT 3,081 Reputation points Microsoft Vendor
    2023-03-15T09:32:37.2+00:00

    Hello, Welcome to Microsoft Q&A,

    This Multi-user capabilities tutorial assumes that you have completed all modules in the HoloLens 2 fundamentals tutorial. Some packages are already mentioned in these modules, so are not listed in the documentation. The following are the asset packages required for this tutorial, please check.

    1. MRTK/Mixed Reality Toolkit Foundation
    2. MRTK/Mixed Reality OpenXR Plugin
    3. MRTK/Azure Spatial Anchors SDK Core
    4. MRTK/Azure Spatial Anchors SDK for Windows
    5. MRTK.HoloLens2.Unity.Tutorials.Assets.MultiUserCapabilities.2.7.2.unitypackage
    6. MRTK.HoloLens2.Unity.Tutorials.Assets.GettingStarted.2.7.2.unitypackage
    7. MRTK.HoloLens2.Unity.Tutorials.Assets.AzureSpatialAnchors.2.7.2.unitypackage or MRTK.HoloLens2.Unity.Tutorials.Assets.AzureSpatialAnchors.2.12.0.unitypackage
    8. PUN 2 - FREE

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful