Skip to content

[Bug]ARTrackedImage trackedImagesChanged value error #VisionPro #1179

@linlifeng1995

Description

@linlifeng1995

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
When recognizing images, the update information is wrong. After I recognize a picture, I hold the picture so that it does not appear in the camera, but the picture is still returned in the update.

Expected behavior
Uptate will return information that is consistent with the actual situation, or is there any way to clear the currently recognized pictures, because I found that the information returned in add is always correct.

Actual behavior
`ARTrackedImageManager m_TrackedImageManager;

void OnEnable() => m_TrackedImageManager.trackedImagesChanged += OnChanged;

void OnDisable() => m_TrackedImageManager.trackedImagesChanged -= OnChanged;

void OnChanged(ARTrackedImagesChangedEventArgs eventArgs)
{
foreach (var newImage in eventArgs.added)
{
// Handle added event
}

foreach (var updatedImage in eventArgs.updated)
{
    // Handle updated event
}

foreach (var removedImage in eventArgs.removed)
{
    // Handle removed event
}

}`
I just follow the official example for image recognition. I get the currently captured object in add and update.
Smartphone (please complete the following information):

  • Device: [VisionPro]
  • Unity version
    2022.3.26
  • ARFoundation version
    5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions