- Platform category: Unity 2022.3.62f2 and Unity 6000.0.58f2
- Device type & OS version: Android
- Host machine & OS version: Microsoft Windows 11 Enterprise 10.0.26100 Build 26100
- ARDK version: Niantic Lightship AR Plugin 3.17.0-2512092207 and Niantic Lightship Meta Plugin 3.17.0-2512092207
Description of the issue:
Hi,
I am following the “Set up Unity for VR development” guide to set up my environment in Unity. I have followed all the instructions on the page, but when I add the package Niantic Lightship AR Plugin 3.17.0-2512092207 on Unity 2022.3.62f2 I encounter four errors.
The errors are listed below:
-
Unable to import newly created asset : Assets/XR/Settings/AuthBuildSettings.asset
UnityEngine.StackTraceUtility:ExtractStackTrace () -
System.TypeInitializationException: The type initializer for ‘Niantic.Lightship.AR.Editor.Auth.AuthEditorSettingsUpdater’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘Niantic.Lightship.AR.Editor.Auth.AuthEditorGatewayAccess’ threw an exception. —> UnityEngine.UnityException: Creating asset at path Assets\XR/Settings\AuthBuildSettings.asset failed.
at (wrapper managed-to-native) UnityEditor.AssetDatabase.CreateAsset(UnityEngine.Object,string) -
Unable to import newly created asset : Assets/XR/Settings/AuthBuildSettings.asset
UnityEngine.StackTraceUtility:ExtractStackTrace () -
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.TypeInitializationException: The type initializer for ‘Niantic.Lightship.AR.Editor.LightshipSDKProjectValidationRules’ threw an exception. —> UnityEngine.UnityException: Creating asset at path Assets\XR/Settings\AuthBuildSettings.asset failed.
at (wrapper managed-to-native) UnityEditor.AssetDatabase.CreateAsset(UnityEngine.Object,string)
I have also tried setting up the environment using Unity 6000.0.58f2 but I ran into 6 errors after adding the package Niantic Lightship Meta Plugin 3.17.0-2512092207.
The errors are listed below:
-
Failed to find entry-points:
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘Niantic.Lightship.MetaQuest.Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ —> System.Exception: Failed to resolve assembly ‘Niantic.Lightship.MetaQuest.Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ in directories: C:\Program Files\Unity\Hub\Editor\6000.0.58f2\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32 -
Library\PackageCache\com.meta.xr.mrutilitykit@cd43822b3134\Core\Scripts\DestructibleMeshComponent.cs(498,52): error CS0118: ‘Editor’ is a namespace but is used like a type
-
Library\PackageCache\com.meta.xr.mrutilitykit@cd43822b3134\Core\Scripts\BuildingBlocks\InstantContentPlacement\Scripts\SpaceLocator.cs(169,41): error CS0118: ‘Editor’ is a namespace but is used like a type
-
Library\PackageCache\com.meta.xr.mrutilitykit@cd43822b3134\Core\Scripts\SceneDecorator\Editor\MaskEditor.cs(29,31): error CS0118: ‘Editor’ is a namespace but is used like a type
-
Library\PackageCache\com.meta.xr.mrutilitykit@cd43822b3134\Core\Scripts\SceneDecorator\Editor\ModifierEditor.cs(29,35): error CS0118: ‘Editor’ is a namespace but is used like a type
-
Library\PackageCache\com.meta.xr.mrutilitykit@cd43822b3134\Core\Scripts\SceneDecorator\Editor\SceneDecorationEditor.cs(34,42): error CS0118: ‘Editor’ is a namespace but is used like a type
I would really appreciate help in resolving these issues and setting up my environment.
Thank you.