Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
1
Question by tonOnWu · Oct 25, 2017 at 08:32 PM · sceneloadscene-loadingscene load

SceneManager.LoadScene is crashing or freezing for Android Devices

Hi guys.

Ok, I've been testing a game with several scenes. In Unity and iOS devices, everything works perfect. In Android, always crash (or freeze if you prefer).

I'm using Unity 2017.2.0f3. and the line of code that crash is the next one (nextScene is a string with the value of the next scene):

 SceneManager.LoadScene (nextScene);

I've been trying other options like:

 SceneManager.LoadScene (nextScene, LoadSceneMode.Single);

But this is not working neither. The last one I tried was:

 SceneManager.UnloadSceneAsync(UIManager.Instance.currentScene);
 SceneManager.LoadScene (nextScene, LoadSceneMode.Single);

Again without success. Please I really need help with this. I've dealing with this problem for 24 hours. It's driving me crazy.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by tonOnWu · Oct 25, 2017 at 09:23 PM

After more than 24 hours I solve the problem. I hope that my solution help other people because there isn't enough references on the web. When I created the APK file it was splitter with a second one of type OBB.

This kind of files is required when the Android App is too big. In my case was set by default. The solution was to force the creation of the APK without the OBB. To do that you must get to Player Settings in Android, go to Publishing Settings and uncheck Split Application Binary (located at the bottom).

Everything's working now and life is good again.

alt text


screen-shot-2017-10-26-at-33843-am.png (346.6 kB)
Comment
Add comment · Show 3 · 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
avatar image 1jstoffer · Dec 22, 2018 at 07:27 AM 0
Share

You are a gentleman and a scholar good sir. I have wasted 3 days dealing with this exact same issue.

avatar image angel1st · Nov 29, 2019 at 03:56 PM 0
Share

I have exactly the same problem - once the script reaches Scene$$anonymous$$anager.LoadScene("02");, the Android app freezes. Unchecking the above checkbox however did not do the trick for me. Any other suggestions? I am using Unity 2019.2

avatar image G-Locasso · Nov 08, 2021 at 04:57 PM 0
Share

Almost one week with problem, so hard to track it down. Thank you for your efforts and for the updated answer; couldn't find this approach anywere.

avatar image
0

Answer by AKComp · Nov 26, 2017 at 11:32 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 · Show 1 · 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
avatar image qarambanos · Feb 16, 2021 at 06:57 PM 0
Share

Hey, can you repost the package from the first bullet? Now it takes me to a 404 error page

avatar image
0

Answer by AnisimovArthur · Feb 25, 2020 at 07:52 AM

Hey,

In my case the problem was in a camera in a scene. I change 'Target Eye' to none (main display) and 'clear flags' to Skybox.

Hope it will help!

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

135 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

After reloading the scene twice one script doesn't work. 0 Answers

Can you help me to find a script for collision a sphere to an object and change the scenes in the same time ? 1 Answer

Scene IS added to build settings: "Scene couldn't be loaded because it has not been added to the build settings" 7 Answers

Only half of work/wall spawping after die and restart game,Why load after die only half scene? 1 Answer

changing scene not working? 0 Answers


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