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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Building only for iOS - can I remove all ARCore from project?

Discussion in 'AR' started by newguy123, Aug 16, 2023.

  1. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,245
    If I'm going to be building only to iOS, does that mean I can remove
    com.unity.xr.arcore
    from my project?

    Since iOS only uses the
    com.unity.xr.arkit
    correct?
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,081
    Yes, you can.
    But if you're doing this to make builds smaller, I don't think it will do any difference. If you look at the 'Packages/ARCore/Runtime/Unity.XR.ARCore.asmdef', it only compiles in Editor and Android. This means that none of the code will end up in non-Android builds.
     
    andyb-unity and newguy123 like this.
  3. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    202
    You can also go into the Package Manager window and uninstall the ARCore package
     
    newguy123 and KyryloKuzyk like this.