# Unable to render unity scene on headset using App Simulator

**URL:** <https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541>\
**Category:** Unity Development\
**Tags:** development, unity, app-sim\
**Created:** [May 16, 2024, 4:06pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541 "2024-05-16T16:06:13Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [May 16, 2024, 4:06pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/1 "2024-05-16T16:06:13Z")

</div>

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

**Unity Editor version** :2022.3.12f1  
**ML2 OS version** :1.7.0  
**Unity SDK version** :1.12.1  
**Host OS** : Windows

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

Hello,  
I'm having trouble rendering the unity scene onto my ML2 headset while using App Simulator on the MLHub. If I open up scene view and enable gizmos, I'm able to observe the camera frustum and controller position+ray moving around as I move my head and the controller, but no elements from the scene appear on the headset.

When I build and run the unity app onto my ML2 headset, the scene works as normal. I would, however, prefer to use App Simulator for faster iteration.

Has anybody run into a similar problem before? Could it be a hardware related issue?

Thanks in advance.

---

<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:** [May 17, 2024, 4:36pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/2 "2024-05-17T16:36:56Z")

</div>

Hi @shurh1029,

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

Are you receiving any errors in the console upon running the app simulator? If you run the simulator without the device, does it function?

Best,

El

---

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [May 17, 2024, 5:03pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/3 "2024-05-17T17:03:16Z")

</div>

Hello El,

In isolation, everything appears to be working.  
The virtual simulator appears to launch just fine with the 1.7.0 sdk, the magic leap 2 appears to connect to the PC via MLHub just fine and app simulator is able to launch.

The unity scene also appears to run just fine with no errors. I was testing it out with the simple scene tutorial with the single cube so there really shouldn't be any issues with the way the unity scene was set up.

The issue lies in the fact that everything seems to be working correctly yet the magic leap 2 is unable to render the unity scene or have the headset movement be reflected in the camera view (in the game view window in the unity editor). This would be my second time setting up a magic leap 2 workflow from the initial tutorial, but I never ran into this particular problem with the other magic leap 2.

---

<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:** [May 18, 2024, 12:16am UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/4 "2024-05-18T00:16:58Z")

</div>

Can you ensure that in **Project Settings \> XR Plug-in Management \> Plug-in Providers** OpenXR is Deselected?

The Application Simulator does not have support for OpenXR just yet.

Best,

El

---

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [May 20, 2024, 2:23pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/5 "2024-05-20T14:23:19Z")

</div>

Hello El,

Yes I've made sure that I'm not using OpenXR and I've been downgrading the magic leap SDK package to v1.12.1 every time the setup tool updates it.

---

<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:** [May 20, 2024, 11:12pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/6 "2024-05-20T23:12:32Z")

</div>

I'm sorry that you are experiencing this. I will go ahead and create a bug ticket for this. What version of the ML Hub are you using?

---

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [May 21, 2024, 2:58pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/7 "2024-05-21T14:58:17Z")

</div>

I'm using MLHub v2.0.19.202405091603.

---

<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:** [May 28, 2024, 2:50pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/8 "2024-05-28T14:50:55Z")

</div>

Are you using the App Simulator through the [Magic Leap Hub](https://developer-docs.magicleap.cloud/docs/guides/developer-tools/app-sim/app-sim-unity-mlhub/) or accessing it [directly in the Unity Editor](https://developer-docs.magicleap.cloud/docs/guides/developer-tools/app-sim/unity-app-simulator/)?

If you are using the App Simulator Unity package, do you mind capturing the logs after reproducing the issue? The Logs can be captured by selecting **Magic Leap \> Save Diagnostics Logs**

If you are using the Simulator through the Magic Leap Hub, you can capture the logs by selecting the [App Simulator titile, then Save Diagnostic Logs](https://developer-docs.magicleap.cloud/docs/guides/developer-tools/app-sim/error-reporting/)

---

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [May 31, 2024, 8:10pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/9 "2024-05-31T20:10:58Z")

</div>

Hi,  
I'm using the app simulator through the magic leap hub. I never ran into any errors while using it aside from the ADB errors I get when closing the unity project and leaving the app simulator instance running. I've attached the diagnostic logs to this reply:  
[NoSceneRenderingOutputLog.zip](https://forum.magicleap.cloud/uploads/short-url/qssSZrKjO29ba7oly8M33LzqTZH.zip) (637.1 KB)

Update: I had someone else try out the same scene on a different computer and they had the exact same issue with the unity scene view accurately reflecting what is happening in the scene during runtime but the display in the ML2 stuck on the "App simulator is running. Launch a Unity scene..." window.

---

<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:** [June 2, 2024, 4:13pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/10 "2024-06-02T16:13:32Z")

</div>

Do you mind trying the app simulator unity package? The package tends to work better and is more integrated .

---

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [June 3, 2024, 4:41pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/11 "2024-06-03T16:41:50Z")

</div>

I tried using the app simulator unity package and it seems to work the first time I run the scene upon starting Unity. If I try to stop and start the scene again, I run into the same issue I had with the MLHub based app simulator. One error message I am running into on subsequent scene runs is:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/6/68c34f263dd9a8541761875193e0804f540a03ef.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:** [June 3, 2024, 5:25pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/12 "2024-06-03T17:25:28Z")

</div>

Do you mind clearing your Library package cache folder and making sure that the Magic Leap App Simulator is the only XR Devices selecting in the Project Settings \> XR Plug-in Management , under the standalone tab?

---

<div class="post-metadata">

**Author:** ![shurh1029](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shurh1029/32/1698_2.png) [@shurh1029](https://forum.magicleap.cloud/u/shurh1029)\
**Post date:** [June 3, 2024, 8:56pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/13 "2024-06-03T20:56:50Z")

</div>

I tried both of these but ran into the same issues.

---

<div class="post-metadata">

**Author:** ![HUNTER](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/hunter/32/1757_2.png) [@HUNTER](https://forum.magicleap.cloud/u/HUNTER)\
**Post date:** [June 3, 2024, 9:05pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/14 "2024-06-03T21:05:22Z")

</div>

Hello anyone can solve it?

---

<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:** [June 5, 2024, 12:23am UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/15 "2024-06-05T00:23:12Z")

</div>

Do you mind providing us the logs ?

> [@Unable to render unity scene on headset using App Simulator](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/8):
>
> Are you using the App Simulator through the [Magic Leap Hub](https://developer-docs.magicleap.cloud/docs/guides/developer-tools/app-sim/app-sim-unity-mlhub/) or accessing it [directly in the Unity Editor](https://developer-docs.magicleap.cloud/docs/guides/developer-tools/app-sim/unity-app-simulator/)? If you are using the App Simulator Unity package, do you mind capturing the logs after reproducing the issue? The Logs can be captured by selecting Magic Leap \> Save Diagnostics Logs If you are using the Simulator through the Magic Leap Hub, you can capture the logs by selecting the [App Simulator titile, then Save Diagnostic Logs](https://developer-docs.magicleap.cloud/docs/guides/developer-tools/app-sim/error-reporting/)

Additionally, please note that the App Simulator is deprecated and is no longer supported. We strongly recommend using other methods such as Unity’s XRI simulator since we are no longer developing or updating the MLSDK App Simulator.

---

<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:** [July 26, 2024, 7:56pm UTC](https://forum.magicleap.cloud/t/unable-to-render-unity-scene-on-headset-using-app-simulator/3541/16 "2024-07-26T19:56:33Z")

</div>


