@chaseryals219 and @tyler.morris
I finally managed to get some build env issues on my end squared away and I got the above script into our examples project with some added debugging and I am getting values for the marker. I also tested with the markertracking example scene and was getting correct behaviour. So maybe not a bug on our part, but probably something easy to mistake in setup. Lets try to figure this out.
We tried adding in your modifications and enabling the Spatial Anchors Subsystem in the OpenXR provider and we're still having the same issue. Is it possible there's a conflict with using MRTK3 and OpenXR?
I tried the 2.2 SDK example apk and the marker tracking was working there. Unfortunately, since it's an apk, I can't compare the project configuration to ours.
Ok, I had a chance to add some mrtk3 ui just to see if that was the conflict and it is still working. I am going to post all the even possibly relevant things I can find. My other thought is maybe its unity version? I am using 2022.3.30f1, I am not sure what @aheaney was using. Because this is a sample project I do have pretty much all the features and permissions turned on ?
So I made a new project and copied the Magic Leap and OpenXR settings without adding MRTK and the issue is still happening for me, so I don't think the issue is MRTK related.
This is also using the HandsDemoScene from the XR Interaction Toolkit samples with XR Hands added as well. I'm also using the default XR Rig that's already setup in the scene. The only thing I changed in the scene is adding the marker tracking script.
@chaseryals219 & @tyler.morris this is really interesting. Lets try seeing if its the unity version. Could y'all try updating to 2022.3.30f1?
Also I will get a zip sent to both of you today with my project so we can see if it works.
@chaseryals219 btw the apk that I sent you guys is the v2.2 samples project compiled with no changes except to set the target SDK version in the Android player settings to 'Automatic'. (Unity v2022.3.30f1) Good to know that the sample apk worked for you at least. Sidney will send you guys a more targeted sample, but it would probably still be useful to see if you can compile and run the example project without issues. You can download the sample project from ML Hub or if you want, I'd be happy to send you a copy of the project.
Magicleap_examples.zip (3.1 MB)
All I did was duplicate a scene in the examples and change the script on it to be the one I posted above. The zip there is without the library folder so you'll need to add the non-unity packages back in manually (magic leap sdk, mrtk things)
Using the provided Zip @aheaney provided, I installed Logcat, added breakpoints at line 103 and 121 in the MarkerTrackingExample script.
Not only did the app continue to produce false detections, hitting breakpoints saying a marker was present when there wasn't one, but I also am still getting pose 0.
Looking at Logcat, I am seeing this repeating a lot