Closed Unity3D-Hardik closed 1 year ago
I guess I got a problem with iOS. While we scan the second image at that time I am getting a Tracking lost event for the last scan image, not for the current Scan image!
this strange behavior is only for iOS, not for Android.
As per my requirement, I am using MutableRuntimeReferenceImageLibrary and as per logic, I am adding image runtime in this library.
The issue is when we add the Image the first time and scan it from the camera I can get the Tracking event and work normally. but after that, I am trying to add another Image then after tracking the event immediately I am getting a lost event or I say it going to else condition while checking
if (trackedImage.trackingState == TrackingState.Tracking){ }else{ }
this happens in iOS only not in android. I am using Unity 2020.3.10 with AR Foundation version 4.2.6
Am I missing something? somewhere I read I need to create a new MutableRuntimeReferenceImageLibrary each time when need to add an image for iOS is that right?