Hi all,
I’ve been trying to load my OBB file following a bunch of different guides, but I keep running in to errors that don’t seem to be solved anywhere.
Currently I’ve followed all steps at __https://developer.oculus.com/blog/tech-note-expansion-files-with-unity/__ and I can see my installed files and the obb, but when I run my app with debugging I get:
AndroidPlayer(samsung_SM-G981B@192.168.1.213) Unable to open archive file: /storage/emulated/0/Android/obb/main.1.com.VS.Test.obb
I’ve tried a couple different approaches, including using UnityWebRequestAssetBundle (this resulted in “Curl error 37: Couldn’t open file”)
Using Unity 2019.4.20f1 and building for Android.
Any ideas of where I should look?
Thanks~
I think I solved the problem today. Will be able to test after the long Easter weekend.
This at least removed the red flags I got when building to my Android phone and my package contents was being loaded.
When following the Oculus guide change the Java helper from
return storageDir + File.separator + "Android" + File.separator + "obb" + File.separator + "main." + version + "." + packageName + ".obb";
To
return storageDir + File.separator + "Android" + File.separator + "obb" + File.separator + packageName + File.separator + "main." + version + "." + packageName + ".obb";
and make sure to push the OBB file into the folder for your package
eg.
/storage/emulated/0/Android/obb/main.1.com.VS.Test.obb becomes
/storage/emulated/0/Android/obb/com.VS.Test/main.1.com.VS.Test.obb
The only other part I did different was using the AssetBundle Manager to rebuild my OBB.
1 Like