Skip to content

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

Open
@badrdouah

Description

@badrdouah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in an ARFoundation-related package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions