Unable to render unity scene on headset using App Simulator

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

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.

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?



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.

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.



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.

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?

I'm using MLHub v2.0.19.202405091603.