Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug AR Tracked Image Manager doesn't work

Discussion in 'AR' started by Andrew3371, Jul 11, 2023.

  1. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    I'm trying to spawn an object with AR Tracked Image Manager. I did that in another project in the past few month. But now on new project it doesn't work. Just nothing happens when I point my camera on target image.

    How to debug this? I need to see how it works and is it working or not. Can you advise me any ideas how to debug this and see where it breaks.
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    774
  3. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    My new research on this problem. I've tested Image Tracking on different versions of Unity and that's what I get.

    2020.3.48f1 - AR Tracked Image Manager works fine.
    2021.3.28f1 - AR Tracked Image Manager doesn't work.
    2022.3.4f1 - AR Tracked Image Manager works fine but the app itself doesn't startup sometimes (black screen).

    My device: Samsung Galaxy Tab A8 SM-X205.
    OS: Android 13

    The original issue I found is in 2021.3.28f1.
    How to reproduce: try to use AR Tracked Image Manager with a standart AR Template or by importing into the clean project. I've attached simple image tracking asset project that I've tested it on.

    I guess the problem is in XR\AR packages. A few month ago the same Unity 2021.3.21f1 (21f1 actually, but now i've tested this on 21f1 and 28f1, same result) with the same AR Template worked fine with image tracking. The only difference I see is in packages versions.

    Unity 2021.3.28f1 with working image tracking (old project):
    • XR Plugin Management version 4.2.0
    • AR Foundation version 4.2.7
    • ARCore XR Plugin version 4.2.8 (Installed 4.2.7)


    Unity 2021.3.28f1 with broken image tracking (current version):
    • XR Plugin Management version 4.3.3
    • AR Foundation version 4.2.8
    • ARCore XR Plugin version 4.2.8


    How to install older versions of your XR packages just for test? I just don't see such option, Unity installs it by itself.

    What does it mean ARCore XR Plugin version 4.2.8 (Installed 4.2.7)?
     

    Attached Files:

    Last edited: Jul 18, 2023
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    774
  5. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    I don't know why but suddenly it is working now in Unity 2021.3.28f1. I didn't change anything, I've just added debugging script as andyb-unity asked me for.

    I tried that right now and it works, event fires up but image tracking works too. It just oddly started working after recompiling with debug.log() script. I did that many times before and it didn't.

    Here some screenshots with logs. They show also messages from the previous days showing errors when it didn't work.
    2023-07-19_17-56-58.png 2023-07-19_17-56-14.png 2023-07-19_17-56-04.png