Hello!
I am currently setting up Unity for my Magic Leap 2 by following the instructions in the developer guide, and have reached Guides>Unity>GettingStarted>Building a Simple App. I am trying to have a sample scene (with just the Magic Leap Main Camera prefab and a cube) show up on the headset through App Sim.
My issue is that when the App Sim is connected (as a Hybrid) and the Unity scene is played, the rotation of the Main Camera prefab and the Device View inside the Magic Leap Hub App Sim both work, but nothing displays on the Magic Leap 2 besides a message that says:
App Sim Ready
Play a scene in Unity or use ZILauncher to run an application on host.
When played, the Unity editor looks like:
The small "Main Camera" window that overlays the Scene View moves with the headset, but the display in the Game View does not move.
Starting an App Sim as just "Device" instead of "Hybrid" causes the rotation to not work, filling the terminal with:
(Not an issue if I can get Hybrid working)
Building to the device as an APK allows me to run it and see the cube, but the App Sim does not.
Unity Editor version: 2022.2.0b7.2913
ML2 OS version: B3E.220818.12-R.085 (Secure Devices Only)
ML App Sim (ZI) version: 3.3.0.20220831
MLSDK version: 0.53.3
Unity Version: 2022.2.0b7.2913
Host OS: Windows 11 (fresh reinstall)
Error messages from logs:
The only warning I get is:
[MagicLeapXr-ImageTracking]: Could not start the image tracking subsystem because permissions were denied.
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/com.unity.xr.management@4.2.0/Runtime/XRGeneralSettings.cs:148)
Maybe is there a permission that needs to be added to a manifest?
My installed packages are:
Updating XR Plugin Management from 4.2.0 to 4.2.1 and updating Magic Leap XR Plugin from 7.0.0-exp.3 to 7.0.0-exp.4 both did not affect the issue.
Has anyone encountered this before or know what's going on?
Thank you for your time!