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

Question AR Foundation Camera not working when Exported to Android Studio

Discussion in 'AR' started by Overature, Apr 27, 2021.

  1. Overature

    Overature

    Joined:
    May 10, 2020
    Posts:
    20
    Hi, I have updated my Unity 2019 project to Unity 2021 and I can get my AR Foundation AR Core stuff to work when deployed direct to android but when I export it as a library to Android Studio, the Unity app works fine (UI buttons etc,) but the background is dark and the camera doesn't work. Doesn't even ask for camera permissions, but it does have them. Any one any ideas?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,795
    Overature likes this.
  3. Overature

    Overature

    Joined:
    May 10, 2020
    Posts:
    20
    I am yes, thanks. I don't think I have seen that tutorial before. Thanks for sharing.
     
  4. haris008

    haris008

    Joined:
    May 28, 2021
    Posts:
    1
    @Overature were you able to fix this? Camera is not working, when unity project is added as library in Android app.