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. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question AR Foundation stopped working after removing mars from my project

Discussion in 'AR' started by noahglassford, Jul 23, 2021.

  1. noahglassford

    noahglassford

    Joined:
    Jan 26, 2021
    Posts:
    1
    Edit: Using mono 32 bit compile I got it working, however the problem is I need a 64 bit apk for google. I was able to do 64 bit compiles previously so I'm not sure whats going on. If you need any project info or files let me know I'm not too sure what you might need to help me here


    As the tile said, I installed mars onto a project to try it out. After doing that I removed it through the package manager since I had no more use for it in my project and it was taking up space.

    After I did that I found that the non AR scenes in my app would work fine (For example, the main menu doesn't have any AR code) and I know it isn't a problem with the camera since I have another non AR scene that uses the device camera and that scene is also working with no issues.
    Once I go to an AR Scene however, the app freezes up and shows the AR background as black, and displaying the objects in the scene.

    If there is no way to fix this I am using source control so I can revert but it would just be better to not have that space taken up on the apk (Size limited apk/aab by google, and its a rather big application with a lot of assets that multiple people are working on, and removing MARS saved a decent chunk of space from the apk)


    Unity Version: 2020.3.14f1
    Device: Samsung Note 8 with all AR requirements
    AR Foundation version: 4.1.7 (same for ARCore XR Plugin and ARKit XR Plugin)
     
    Last edited: Jul 23, 2021
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,736