Is there a way to detect if a build has a split binary or not?

I’m trying to make a one-size-all solution for split binaries that will work whether I split the binary or not.

Currently I have a class that exists in a special scene that does:

  1. Get location of OBB file
  2. Check OBB file exists
  3. If OBB File doesn’t exist, download it from Google Play
  4. Load the next scene

But while testing (or for TestFlight builds) it is set to not split the binary. In order for this to work, we have to remember to turn off the first scene before building, then remember to turn it on again before submission to Google. This has caused problems a few times when people forget.

If there was a simple way I could check in the code whether the build was split binary or not, I could avoid attempting to download the OBB file that doesn’t exist on Play.

I’ve been searching and maybe I just missed a previous topic amongst all the ones explaining how to do it.

Thanks in advance.

this?

hi,I’m trying to test reading obb file from local sdcard.
currently I have done the follows:
1.put the obb file to /mnt/sdcard/android/obb/main.obb;
2.use WWW.LoadFromCacheOrDownload() to fetch the obb from local;
3.if www.error !=null,then Load Main Level.
But,the log message on android device show that parse path error.I fixed it in other ways which i don’t wheather it is right.However,when executing Application.LoadLevel(“MainMenu”),it’s said that MainMenu(1) not added to buildSettings.

Would you please help me to solve this problem?
Very Thanks in advance!!