# Error opening ML2 examples in Unity

**URL:** <https://forum.magicleap.cloud/t/error-opening-ml2-examples-in-unity/573>\
**Category:** Unity Development\
**Created:** [August 15, 2022, 3:30pm UTC](https://forum.magicleap.cloud/t/error-opening-ml2-examples-in-unity/573 "2022-08-15T15:30:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luella](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@luella](https://forum.magicleap.cloud/u/luella)\
**Post date:** [August 15, 2022, 3:30pm UTC](https://forum.magicleap.cloud/t/error-opening-ml2-examples-in-unity/573/1 "2022-08-15T15:30:08Z")

</div>

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?)

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [August 15, 2022, 3:52pm UTC](https://forum.magicleap.cloud/t/error-opening-ml2-examples-in-unity/573/2 "2022-08-15T15:52:44Z")

</div>

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](https://developer.magicleap.cloud/learn/docs/guides/unity/getting-started/import-unity-packages)

---

<div class="post-metadata">

**Author:** ![luella](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@luella](https://forum.magicleap.cloud/u/luella)\
**Post date:** [August 15, 2022, 6:44pm UTC](https://forum.magicleap.cloud/t/error-opening-ml2-examples-in-unity/573/3 "2022-08-15T18:44:55Z")

</div>

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 🤦🤦🤦🤦🤦🤦🤦

thank you so much haha!!

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [April 17, 2024, 9:04pm UTC](https://forum.magicleap.cloud/t/error-opening-ml2-examples-in-unity/573/4 "2024-04-17T21:04:03Z")

</div>


