# How to Enable Magic leap Feautre?

**URL:** <https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101>\
**Category:** Unity Development\
**Tags:** app-sim, unity-sdk-update\
**Created:** [January 30, 2024, 4:59pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101 "2024-01-30T16:59:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [January 30, 2024, 4:59pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/1 "2024-01-30T16:59:14Z")

</div>

**Unity Editor version** (if applicable): 2022.3.13  
**ML2 OS version** : 1.5.0  
**MLSDK version** : 1.5.0

Magic Leap HubVersion 2.0.17.202312111547  
Magic Leap Application Simulator Module Version 3.8.0.202312080701  
Magic Leap Application Simulator Runtime Version 3.8.0.20231208  
Server: 3.8 (built Dec 8 2023), Protocol: 27  
ZIF (bundled): Version 0.0.35.20231208  
ZIF (runtime): Version 0.0.35.20231208  
Windows

After recently updating my OS etc, I am not getting Magic Leap API permissions from Unity. Features such as Plane Detection are disabled. What should I do?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/0/095cecc3a668ef82db2d2153c5533dd6d8de13e5.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/f/f954fc8d72851b34ec85b28156c930d40783ad64.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/4/46d2f4e3ead5bb0e691d46d1f67af56075455786.png)

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [January 30, 2024, 7:02pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/2 "2024-01-30T19:02:04Z")

</div>

Hi @primepaejh,

Thank you for reaching out to us and providing screenshots. I have consulted our team regarding this issue and I will report back as soon as I learn more.

Best,

El

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [January 30, 2024, 7:19pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/3 "2024-01-30T19:19:43Z")

</div>

Does it work after closing and reopening the Unity Editor?

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [January 31, 2024, 1:42am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/5 "2024-01-31T01:42:26Z")

</div>

No matter how many times I turn it off and on, it doesn't work, even when I turn my computer off and on.

---

<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:** [January 31, 2024, 9:51pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/6 "2024-01-31T21:51:14Z")

</div>

Can you verify that the project is targeting Android in the build settings and that you are looking at the Android tab in the project validation window?

In the image you posted it looks like the Spatial Mapping permission and the Plane Detection features are enabled, are you having issues running the application on device? Have you requested the permission explicitly? [Requesting Permissions | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/unity/permissions/requesting-permissions/)

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 6, 2024, 3:15am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/7 "2024-02-06T03:15:15Z")

</div>

Yeah, we're all set. I'll attach the Unity logs as well.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/e/efb18a2491f7b03e174056d55172902d64c1f202.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/e/eb43414c1a727eccf732a9592ab1d1b87bfc1462.png)

---

<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:** [February 6, 2024, 5:09am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/8 "2024-02-06T05:09:48Z")

</div>

I’m not sure I understand. Were you able to get the Magic Leap Unity Example project to work? Have you noticed differences in the package versions between the examples and your project?

Do you have Open XR and Magic Leap selected as the target platforms in Unity’s Xr manager?

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 6, 2024, 8:51am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/9 "2024-02-06T08:51:27Z")

</div>

I haven't tried the example, but my application was working fine until I updated the Magic Leap Application Simulator to Version 3.8.0 in the Maigc Leap HUB. I tried selecting both OpenXR and Magic Leap in the XR Manager, and I tried selecting only Magic Leap, but neither worked. I tried uninstalling and reinstalling Unity Editor, but it's still the same. What can I do?

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 6, 2024, 9:01am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/10 "2024-02-06T09:01:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/e/e6aca02decf7dd5c648abf9d9436a29d8f71e237.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/6/6d808cfb186f6cca410cea2d7e43fd397378dd91.png)  
I keep getting this LOG in Untiy. Does anyone know anything? I'll attach all the things I have set up now.

---

<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:** [February 6, 2024, 5:56pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/11 "2024-02-06T17:56:04Z")

</div>

Thank you for the additional information.

The OpenXR APIs are not supported in App Simulator at this time. Do you mind deselecting the XR Package Manager settings and disabling the OpenXR option in both the standalone and Android tabs?

Once deselected, please import the com.unity.xr.magicleap version 7.0.0 package via the package manager. (Select the plus icon and select "by name" . This will ensure that the correct package version is installed.

Once installed, re-enable Magic Leap (Not OpenXR) in the XR Plug-in Management window under both the Standalone and Android tabs.

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 7, 2024, 4:58am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/12 "2024-02-07T04:58:08Z")

</div>

tried, but still no luck. I've even created a new Unity project and run the examples provided by Magic Leap Hub, and I'm having the same problem. I've looked up and tried so many things, but I'm not getting anywhere. What can I do?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/b/b428c6628b439ccccc9de15975722c879c618759.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/2/253e4dc036fdb1eadf0b2ce6ebec1046d5eeb075.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/7/7a1b74ae0ba52232402d4fecc3e464901908ddfb.png)

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 7, 2024, 7:37am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/13 "2024-02-07T07:37:03Z")

</div>

I started a completely clean setup on a different desktop than the laptop I was using, installed Unity, and did a clean install of Magic Leap Hub again, but when I run the same Plane example, I get the same error log and no Pland Detection. I've tried everything you suggested and it's the same.

---

<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:** [February 7, 2024, 2:26pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/14 "2024-02-07T14:26:39Z")

</div>

Are you using the 1.12.0 version of the Magic Leap examples project? The 2.0.0 Unity Examples are configured exclusively for OpenXR and will not work inside the simulator.

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 13, 2024, 4:17am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/15 "2024-02-13T04:17:29Z")

</div>

I changed to version 1.12.0 and ran the example again, but this time I got a different error log. How can I fix this error?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/8/89599b9b9933a5c61fe1b40e44daa180a307c853.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/3/339ad5c69fcd85a317db7047787a5f848bf366c1.png)

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 13, 2024, 5:17am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/16 "2024-02-13T05:17:30Z")

</div>

By the way, I used Magic leap SDK version 2.0.0 even before I updated Magic leap Simulator from 3.7 to 3.8 and Magic leap os to 1.5.0. I had no problems then. All the problems started after the update. Can't you at least enable rollback?

---

<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:** [February 13, 2024, 7:35pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/17 "2024-02-13T19:35:56Z")

</div>

Can you verify that OpenXR is disabled in the Standalone tab in the XR Plugin Management ? I also recommend removing the OpenXR package when using the 1.12.0 Unity SDK version as it is not guaranteed to support the OpenXR package that you are using.

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 19, 2024, 5:09am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/18 "2024-02-19T05:09:49Z")

</div>

Plane Detection is finally enabled! Thank you! But the RayCast feature still doesn't work. How can I fix this?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/d/d4f7a3b3dadd5cad261ce83eefd2a00360bcb5fe.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/1/13a75e68c65026685a21a7284a64c69fb1bc7cd5.jpeg)

---

<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:** [February 19, 2024, 2:41pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/19 "2024-02-19T14:41:45Z")

</div>

The Magic Leap SDK does not support the XR Raycast Subsystem at this time. As an alternative, use the Unity Physics Raycast instead and the Physics Culling Layers to filter which colliders are raycasted agaisnt.

---

<div class="post-metadata">

**Author:** ![primepaejh](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@primepaejh](https://forum.magicleap.cloud/u/primepaejh)\
**Post date:** [February 20, 2024, 3:39am UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/20 "2024-02-20T03:39:55Z")

</div>

Everything is fixed, thank you so much for your help!!!

---

<div class="post-metadata">

**Author:** ![kng](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kng](https://forum.magicleap.cloud/u/kng)\
**Post date:** [March 1, 2024, 10:05pm UTC](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101/21 "2024-03-01T22:05:27Z")

</div>

Hey @primepaejh! How were you able to solve this issue? I am experiencing a very similar problem after updating to those versions you mentioned.

[Next page](https://forum.magicleap.cloud/t/how-to-enable-magic-leap-feautre/3101.md?page=2)
