I’ve published an Android game on the Google Play store, using Unity’s built-in splitter, which I thought would work automatically. Now, however, only the apk downloads after purchase. The OBB file isn’t downloading, so the app hangs when trying to load the 2nd scene. I’ve read the Unity doc (Unity - Manual: APK expansion files) but am confused about what I need to do to make this work – it’s very vague about what the built-in splitter does vs the Asset Store add-on (which I am not using, and hope not to have to use). Is there something I need to put in the first scene to force a download of the OBB? Why doesn’t it download automatically?
The built-in APK split option only does half the work. It splits the APK into the main scene APK and the data/resources OBB File. In order to get it to download you need to integrate the Google Play OBB Downloader AssetStore package into your project. Then in the first scene of your project you want to do a process similar to the process in the OBB Downloader example (make sure you put in the LVL key as per the read me of the downloader).
Thanks for the reply. However (and happily), it turns out that Unity’s auto-splitter does do all the work – but only if you name the files correctly – a fact that doesn’t seem to be documented anywhere, but which i found in this forum thread: http://forum.unity3d.com/threads/135224-More-Google-OBB-drama/page2?p=1419520
Specifically:
I used that naming convention for both the apk and the obb, just to be safe, and it works automagically!