Error opening ML2 examples in Unity

hey everyone - running into some issues trying to open the included samples in unity. can anyone advise? tried both with 2022.2.0b4 and 2022.2.0a18

Give us as much detail as possible regarding the issue you're experiencing.

Unity Editor version: 2022.2.0b4, 2022.2.0a18
ML2 OS version:
MLSDK version:

Error messages from logs (syntax-highlighting is supported via Markdown):

Script updater for Library\Bee\artifacts\1900b0aEDbg.dag\MagicLeap.SDK.dll failed to produce updates.txt file

Packages\com.magicleap.unitysdk\Runtime\APIs\Dimmers\MLSegmentedDimmer.cs(8,32): error CS0246: The type or namespace name 'URP' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Anchors\AnchorSubsystem.cs(10,32): error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(17,22): error CS0234: The type or namespace name 'InteractionSubsystems' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(20,22): error CS0234: The type or namespace name 'InteractionSubsystems' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystemComponent.cs(17,22): error CS0234: The type or namespace name 'InteractionSubsystems' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\ImageTracking\ImageTrackingSubsystem.cs(12,32): error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Meshing\MeshingSubsystemComponent.cs(25,32): error CS0234: The type or namespace name 'Meshing' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Session\SessionSubsystem.cs(19,32): error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Tools\Scripts\MagicLeapCamera.cs(5,32): error CS0234: The type or namespace name 'Rendering' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\XrProvider\LuminXrProvider.cs(20,22): error CS0234: The type or namespace name 'InteractionSubsystems' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Anchors\AnchorSubsystem.cs(14,44): error CS0234: The type or namespace name 'MagicLeapLogger' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\ImageTracking\ImageTrackingSubsystem.cs(19,44): error CS0234: The type or namespace name 'MagicLeapLogger' does not exist in the namespace 'UnityEngine.XR.MagicLeap' (are you missing an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(28,52): error CS0246: The type or namespace name 'XRGestureSubsystem' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(42,28): error CS0118: 'Provider' is a namespace but is used like a type

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(150,16): error CS0246: The type or namespace name 'GestureId' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(42,37): error CS0115: 'GestureSubsystem.CreateProvider()': no suitable method found to override

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(149,16): error CS0246: The type or namespace name 'GestureId' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(38,24): error CS0246: The type or namespace name 'GestureId' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(43,24): error CS0246: The type or namespace name 'GestureState' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(109,45): error CS0246: The type or namespace name 'GestureId' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(109,59): error CS0246: The type or namespace name 'GestureState' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(186,17): error CS0246: The type or namespace name 'GestureId' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\Extensions\TouchpadGestureEvent.cs(187,17): error CS0246: The type or namespace name 'GestureState' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(61,42): error CS0118: 'Provider' is a namespace but is used like a type

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Raycast\RaycastSubsystem.cs(26,48): error CS0246: The type or namespace name 'RaycastQuery' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Raycast\RaycastSubsystem.cs(26,16): error CS0246: The type or namespace name 'AsyncRaycastResult' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Planes\ConvexHullGenerator.cs(76,20): error CS0246: The type or namespace name 'NativeFixedList<>' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(79,34): error CS0115: 'GestureSubsystem.MagicLeapGestureProvider.Start()': no suitable method found to override

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(83,34): error CS0115: 'GestureSubsystem.MagicLeapGestureProvider.Stop()': no suitable method found to override

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(87,34): error CS0115: 'GestureSubsystem.MagicLeapGestureProvider.Update()': no suitable method found to override

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystem.cs(113,34): error CS0115: 'GestureSubsystem.MagicLeapGestureProvider.Destroy()': no suitable method found to override

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Gesture\GestureSubsystemComponent.cs(43,29): error CS0246: The type or namespace name 'ActivateGestureEvent' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Raycast\RaycastSubsystem.cs(128,52): error CS0246: The type or namespace name 'RaycastQuery' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Raycast\RaycastSubsystem.cs(128,20): error CS0246: The type or namespace name 'AsyncRaycastResult' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Meshing\MeshingSubsystemComponent.cs(833,9): error CS0246: The type or namespace name 'MagicLeapLoader' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(271,43): error CS0246: The type or namespace name 'VibePattern' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(271,64): error CS0246: The type or namespace name 'VibeIntensity' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(277,49): error CS0246: The type or namespace name 'LEDPattern' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(277,72): error CS0246: The type or namespace name 'LEDColor' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(283,48): error CS0246: The type or namespace name 'LEDEffect' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(283,69): error CS0246: The type or namespace name 'LEDSpeed' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(283,88): error CS0246: The type or namespace name 'LEDPattern' could not be found (are you missing a using directive or an assembly reference?)

Packages\com.magicleap.unitysdk\Runtime\Subsystems\Input\Extensions\DeviceLayouts.cs(283,111): error CS0246: The type or namespace name 'LEDColor' could not be found (are you missing a using directive or an assembly reference?)

2 Likes

Hi Luella,

Please make sure you have followed the getting started guide and have imported the com.unity.xr.magicleap package and that your project is set to URP.

https://developer.magicleap.cloud/learn/docs/guides/unity/getting-started/import-unity-packages

2 Likes

yeah haha sorry i was being dumb. i spent so long setting up the magic leap packages in my other project i forgot i had to reimport them for the new project :person_facepalming::person_facepalming::person_facepalming::person_facepalming::person_facepalming::person_facepalming::person_facepalming:

thank you so much haha!!

3 Likes