Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question APK too large

Discussion in 'VR' started by nsmith1024, Oct 14, 2022.

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    Hello,

    My Oculus Quest 2 app is now past the max file size that meta accepts for Oculus Quest 2 submission to AppLab.

    I read somewhere that there is a way using split files or OBB or something like that (Im not sure), to double the file size that meta accepts, I think up to 4G.

    Can someone please tell me how to do it, what check boxes to check or uncheck in unity when doing the build, and how to get the resulting files into Oculus for testing, and how to to upload the 4G build to meta for approval for AppLab?

    Thanks
     
  2. jeffries7

    jeffries7

    Joined:
    Jun 25, 2014
    Posts:
    60
    You can split your apk into a smaller apk and a supporting obb but the max file size for that is 2GB.

    Even though Oculus accept obb files of 4GB, Unity will not allow you to build ones larger than 2GB....from what I've seen.

    To split your build into these two files go to Project Setting > Player > Publisher Settings, then at the bottom, there is a tick box "Split Application Binary". Checking that will build the project with an apk and obb.

    You can then use whichever tool you're currently using to upload to AppLab, just passing in both files.
     
    DevDunk likes this.