- Home /
The question is answered, right answer was accepted
Where to put my .obb file?
Hello. This may seem like a silly question but where to I put the obb file. This is my first time exporting a game using split application binary and I just can figure out where to put the file. I tried sdcard/Android/data/[packagename] and sdcard/Android/data/[packagename]/files and sdcard/Android/obb/[packagename] and I just can't seem to figure out why my next scene isn't loading. I checked if I referenced the correct scene index and I didn't rename the obb file after export. I also have various games on my device that use obb files and I tried using their file path style with my game but still no luck. Someone please help.
Obb files go to Android/obb/[packagename]
If you have an sd card, try saving it to sdcard/Android/obb/[packagename]. If it fails try saving it to the internal storage internal storage/Android/obb/[packagename]
Answer by JoshBaz · Aug 21, 2016 at 08:02 PM
Ok I figured it out. I had to rename the obb file using [main|patch].[expansion-version].[package-name].obb and then place it in sdcard/Android/obb/[package-name]
I know this is an old link, but this shows up in Google search so here goes: How to sideload a split Android AP$$anonymous$$/OBB package onto a device from computer via USB cable.
UNITY EXPORT
- Attach device to computer with USB cable.
- In the inspector, Android tab, Publishing Setting, check the box "Split Application Binary".
Google Play Store has a 100 $$anonymous$$B limit on the AP$$anonymous$$ so this can be split to AP$$anonymous$$ (max 100 $$anonymous$$B) and OBB (max 2 GB).
- Export from Unity to AP$$anonymous$$/OBB. Files saved onto computer directory.
RENA$$anonymous$$E OBB
- In Unity, File>Build Setting>Player Settings.
- In the Inspector, Select Android and then go to "Other Settings".
- Copy the Identification>Package Name.
- Go to the directory where the files were saved.
- Rename the file name from "Filename.obb" to "main.1.com.CompanyName.GameName.obb". (This is "main.1.") (then paste the Game Name after it) (then ".obb").
SI$$anonymous$$OAD APP
- Copy the AP$$anonymous$$ to a directory such as: Phone>Download.
- Create a directory on the phone: Phone>Android>obb>PackageName. ("com.CompanyName.GameName")
- Copy the OBB to the directory Phone>Android>obb>PackageName.
RUN GA$$anonymous$$E
- Run an app like "$$anonymous$$y Files" from android device.
- Find the AP$$anonymous$$ and install App.
- It may require you to approve of allow sideloading apps not from the strore. Change the setting.
- Run the game and enjoy.
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Possible to load scenes from directory? 3 Answers
Input not working in-build. 0 Answers