Skip to content

Tracked images not removed even after assigning fresh mutable reference image library [Bug] #1199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
badrdouah opened this issue Feb 26, 2025 · 0 comments
Labels
bug A bug in an ARFoundation-related package

Comments

@badrdouah
Copy link

badrdouah commented Feb 26, 2025

I set up ARKit to track Image A by creating a Mutable Reference Image Library (MRL). Later, I create a completely new MRL instance with Image B to track instead. However, ARKit still tracks Image A, even though it shouldn’t be part of the new library.

You can clearly see this issue by checking the child GameObjects under XROrigin → Trackables, where the previously tracked image (Image A) remains.

Additionally, I’m facing another problem: the name property of the tracked image is always empty (""). Even though I assign a name when creating the Mutable Reference Library, the trackedImage.referenceImage.name always returns an empty string.

library = aRTrackedImageManager.CreateRuntimeLibrary() as MutableRuntimeReferenceImageLibrary; if (library == null) { Debug.LogError("Failed to create runtime library"); yield break; } addReferenceImageJobState = library.ScheduleAddImageWithValidationJob( generatedQRCodeTexture, "test", 0.09f );

  • Device: iPhone 15 pro , same problem persiste on editor when using XR simulation
  • Unity version 6.0.38f1
  • ARFoundation version 6.0.5
@badrdouah badrdouah added the bug A bug in an ARFoundation-related package label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in an ARFoundation-related package
Projects
None yet
Development

No branches or pull requests

1 participant