Search Unity

Question Testing AR on AVD?

Discussion in 'AR' started by FoxAdventures, Apr 7, 2023.

  1. FoxAdventures

    FoxAdventures

    Joined:
    Jan 31, 2018
    Posts:
    77
    I'm working on an AR app using only Unity (dont own ARFoundation) and I need to test it using an android virtual device. However when I attempt to test my apk build, behind the objects the skybox (or solid color) is rendered, and the camera is not seen, and the app crashes once I click anywhere. In AVD advanced settings I set the cameras to my webcam. It works in apps like snapchat etc but not for my app. Is this because one can not test AR apps on an AVD or have I done something wrong with the unity project?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,049
    1. What systems do you use for AR?
    2. Emulators don't work well with most AR systems
     
  3. FoxAdventures

    FoxAdventures

    Joined:
    Jan 31, 2018
    Posts:
    77
    I use the AR package, ARCore XR Plugin, XR Plugin Management, with solely ARCore enabled in the Plug-in Providers.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,049
    ARCore does not run on emulators
     
    FoxAdventures likes this.
  5. FoxAdventures

    FoxAdventures

    Joined:
    Jan 31, 2018
    Posts:
    77
    Right, that explains it. What should I be using instead? The emulator is a Nexus 5 API 30 and system image is R Android 11.0
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,049
    A phone with arcore support
     
  7. thomas_key

    thomas_key

    Unity Technologies

    Joined:
    Dec 14, 2019
    Posts:
    39