Niantic WPS namespace problems

Include the following details (edit as applicable):

  • Issue category: Lightship Maps / Semantic Segmentation / Multiplayer / Real-time Mapping-Depth / ARDK Documentation / Unity Example Package / Sample App aka ‘AR Voyage’ / ARDK Virtual Studio Tools / Developer Tools / Networking / VPS / Scanning Framework
  • Device type & OS version: Android / iOS / Other Ex. iPhone 8+ on iOS 13
  • Host machine & OS version: Mac / Windows / Linux / Other Ex. Mac on Big Sur x.x
  • Issue Environment : Unity Remote / Unity Mock / On Device / Dev Portal
  • Xcode version:
  • ARDK version: 3.12
  • Unity version: 2022.3.37f1

Description of the issue:

Hello! Just to preface, I am a beginner in coding/unity, please explain simply for me!
I am following this video on using WPS (https://www.youtube.com/watch?v=wBNSAk6tbgg) and when I am creating the scripts, I get the error messages:

“Severity Code Description Project File Line Suppression State
Error (active) CS0234 The type or namespace name ‘Lightship’ does not exist in the namespace ‘Niantic’ (are you missing an assembly reference?) Assembly-CSharp, Assembly-CSharp.Player…”

At the top of the script I am using:
using System.Collections;
using System.Collections.Generic;
using Niantic.Lightship.AR.WorldPositioning;
using Niantic.Lightship.AR.XRSubsystems;
using UnityEngine;

What am I doing wrong? I am actually able to recreate the script in the sample projects. What’s different? I have the newest ARDK 3.12 package installed.

Hi Benick,

I’m sorry to hear you’re having trouble getting started with the ARDK!

Are you starting from scratch with a brand new project in Unity or was this an existing one that you’re adding the ARDK to?

The error suggests that the package wasn’t installed correctly, cannot be located by your IDE, or has become corrupted for some reason. I would recommend closing out of your IDE and Unity and clearing out your project’s package cache which will be in your project’s folder/Library/PackageCache. Once you’ve done that, you can reopen your project, reinstall the ARDK via the Package Manager via Git URL and reopen your script.

Let me know how that goes!

Kind regards,
Maverick L.