Hi all I assume I am missing a basic step or something I’ve created a MRTK3 template and installed Magic Leap MRTK3 package and imported a basic sample scene.
I set Android permissions and Magic leap permissions also set MRTK3 profile for Android Using MRTKPRofile-Magicleap-OpenXR
and my openXR settings are like that
I really would be glad if some one help I need to make a setup that works in both Hololens 2 and Magic Leap 2 if you have an example empty project it would helps too.
Unity Editor version: Unity 6 6000.0.30F1 ML2 OS version:1.12.0 Magic Leap SDK ver: 2.6.0 Host OS: (Windows/MacOS) Win10
Here is my error log: from device log streaming.
com.UnityTechnologies.com.unity.template.urpblank
UnityGfxDeviceW
type=1400 audit(0.0:3165): avc: denied { search } for name=“traces” dev=“nvme0n1p37” ino=8650755 scontext=u:r:untrusted_app:s0:c122,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
Do you mind collecting some logs? Did the project work in previous versions of Unity? Have you tried to compare your project settings to the ones in the Magic Leap Examples Project? Have you been able to get the MRTK Template Project to run properly? You can choose the OpenXR branch in github to pull the OpenXR variant
After spending some more time on this, just like you said, I decided to try 2022.3.51f and tried Magic Leap 2 Template Projects and it worked
but I’m really curious what is the reason behind Unity 6, I couldn’t get a proper error log, I also tried on Hololens 2 it never works on Unity 6, I’m quite sure it’s a Unity 6 related Player or URP setting but hard to address at the moment I’ll continue with 2022
I recommend trying out the adb logcat package from Unity and then selecting your activity to filter the logs. It helps show both system and app longs related to the app.
Ok I couldn’t check, but eventually I’ve downloaded another “Unity Examples” Package from ML2 Hub and it worked with no issues with Unity6 so technically Unity2022 versions ended up more supportive for my project at the moment, but as a solution if someone has an issue with Unity6 it’s best to download “Unity Examples” from hub and make sure to have same build settings.
I am working on a project using both Magic Leap 2 and HoloLens in Unity 6000.0.40f1. I believe you need to turn off Hand Tracking for it to work on Magic Leap 2.