# Can not run ML2 in Unity with the Play button

**URL:** <https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317>\
**Category:** Unity Development\
**Created:** [August 3, 2023, 5:49pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317 "2023-08-03T17:49:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidrbuyck](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@davidrbuyck](https://forum.magicleap.cloud/u/davidrbuyck)\
**Post date:** [August 3, 2023, 5:49pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317/1 "2023-08-03T17:49:48Z")

</div>

I am trying to play my Unity app in the unity editor with the play button and have the application run on my computer and display on the ML2 while logging output to the Unity editor console. I have tried to get zero iteration and I have no idea how to set up unity to allow me to play my app on the ML2 without building it

**Unity Editor version** : 2022.3.6f1  
**ML2 OS version** : 1.1.0  
**MLSDK version** : 1.8.0  
**Host OS** : (Windows/MacOS) Windows

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

---

<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:** [August 3, 2023, 6:01pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317/2 "2023-08-03T18:01:00Z")

</div>

Hi @davidrbuyck,

Welcome to the Magic Leap 2 Developer Forums. We are so grateful to have you here engaging with us.

Are you using the Magic Leap Hub? Here is a Unity tutorial project for the Magic Leap 2 and it will help you get started with the Application Simulator in the Magic Leap Hub.

> **[Get started creating for the Magic Leap 2 - Unity Learn](https://learn.unity.com/tutorial/get-started-creating-for-the-magic-leap-2?uv=2022.2&courseId=643419cbedbc2a5f42275126#)**
>
> The Magic Leap 2 is an immersive Augmented Reality (AR) headset built for enterprise solutions. It allows you to seamlessly blend digital and physical worlds, creating immersive experiences that were once only imaginable. It’s used across industries...

Let me know if you run into any issues.

Best,

El

---

<div class="post-metadata">

**Author:** ![davidrbuyck](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@davidrbuyck](https://forum.magicleap.cloud/u/davidrbuyck)\
**Post date:** [August 4, 2023, 3:02pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317/3 "2023-08-04T15:02:35Z")

</div>

I just did the tutorial but when I tried to use the Application Simulator in the Magic Leap Hub I got this error when I tried to Connect my ML2:

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

I also updated the Magic Leap to 1.3.0-dev2 and Magic Leap Hub

---

<div class="post-metadata">

**Author:** ![davidrbuyck](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@davidrbuyck](https://forum.magicleap.cloud/u/davidrbuyck)\
**Post date:** [August 4, 2023, 3:07pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317/4 "2023-08-04T15:07:51Z")

</div>

This is the details of the error:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/5/5d6127f35f4fb91e5456d1d12085ea5f580e15c8.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:** [August 4, 2023, 3:16pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317/5 "2023-08-04T15:16:44Z")

</div>

Hi @davidrbuyck,

Thank you for these details. This is a known issue with the new release and we are actively working on this. There will be an automatic update in the ML Hub soon.

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:** [August 4, 2023, 8:03pm UTC](https://forum.magicleap.cloud/t/can-not-run-ml2-in-unity-with-the-play-button/2317/6 "2023-08-04T20:03:12Z")

</div>

The App Simulator issue has been fixed. You can now download the corrected version in the hub.
