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

how to make patch obb file. in unity

Discussion in 'Android' started by whdyddlr1229, Jun 21, 2018.

  1. whdyddlr1229

    whdyddlr1229

    Joined:
    Jan 3, 2018
    Posts:
    4
    i builded android spilt binary. but build create only 1 obb file. i want to create obb files ( main obb and patch obb ). how to make obb files?

    please help me.
     
  2. evan_spiegel

    evan_spiegel

    Joined:
    Jul 17, 2019
    Posts:
    26
    Hey there, did you ever figure out how to do this?
     
  3. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
    Unity can only create the main.obb file. If you want to create the patch.obb file, you will have to do it yourself.
     
  4. evan_spiegel

    evan_spiegel

    Joined:
    Jul 17, 2019
    Posts:
    26
    Thanks for your response! Is there a way to tie the patch obb to the apk and main obb so that assets/scenes from the patch obb can be referenced?
     
  5. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
    I am not sure about the scenes (it wasn't tested), however patch.obb should be mounted by Unity as long as the file named with a build-id matching the value in the manifest is present. See this page and the "Note" section for a more detailed explanation https://docs.unity3d.com/Manual/android-OBBsupport.html Once the patch.obb was loaded, its contents will be available to Unity.
     
  6. evan_spiegel

    evan_spiegel

    Joined:
    Jul 17, 2019
    Posts:
    26
    I'll take a look at that, thanks!
     
  7. AGuerchais_Novelab

    AGuerchais_Novelab

    Joined:
    Jan 23, 2019
    Posts:
    1
    Hi, sorry to jump in this old post but I have similar issue, I follow the note in the doc and add the file with the unity build-id and create the OBB with jobb but the obb seems to be corrupted. (I try to open the archive on android with some utility and I can't open it but I can open the obb created during unity build)