Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by leon_r42 · May 29, 2017 at 06:28 AM · androidloadlevelload sceneobbload level

Game freezes loading a new scene with Android split application (APK + OBB)

Hi All,

Been banging my head on this issue for a while now.

I have got an Android application which loads large movie files from StreamingAssets, therefore I have to turn Split Application Binary on to store those in the .obb expansion file.

However, when I do this, changing to any scene (initial scene loads fine because it's included in the .apk) causes the game to freeze. No errors are logged in the logcat, build log or development build log.

If I make that scene the first one, it loads fine, therefore there must be an issue with the .obb loading.

I double checked and the .obb is copied to the right location, even copied it myself, but to no luck.

Here's a list of fixes I attempted after googling the problem:

  • Changed install location to "Internal only" and / or Write Permission to "External (SD Card)" (Double checked it was in the manifest too)

  • Moved scenes to the Resources folder

  • Using C# code only

  • Changed Application / Package Name

  • Tried different scenes

None of these fixes work.

Using Unity 5.6.1f1.

Thanks in advance for any reply! L

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by AKComp · Nov 26, 2017 at 11:30 PM

1-) Import this package to your project,

2-) Create new C# script and add this lanes to your main scene (Firstly loading scene)

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 public class obbLoader : MonoBehaviour {
     // Use this for initialization
     void Start () {
         if (PlayerPrefs.GetInt ("obbLoaded") == 0) {
             GooglePlayDownloader.FetchOBB();
             PlayerPrefs.SetInt ("obbLoaded", 1);
             PlayerPrefs.Save ();
             Application.LoadLevel ("MainMenu");
         } 
     }
 }


Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

OBB here but app won't load it and stay on the first scene 1 Answer

Load/Change scene with UI Button 1 Answer

Using OBB Expansion Files with Vuforia 1 Answer

Application Level data not available inside OBB (Android) 0 Answers

How to make a mobile Play-Button to load a scene? (Android, load level) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges