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 /
  • Help Room /
avatar image
2
Question by midgardweller · Jan 23, 2016 at 09:37 PM · androidscene-loading

Scene loads in editor but not on Android build

I recently upgraded a Unity project from 4.6 to 5.3.1f1. Not unexpectedly, there were some issues involved in doing so. I have cleared up all of the errors and my project works fine in editor, however when I try to build to an Android device (Nexus 7 and Samsung Galaxy s5) the Game scene will not load.

I have a Splash Screen scene that loads into a Main Menu scene which works fine. Whenever I try to go from the Main Menu to a Game scene, the game completely freezes while still on the Main Menu. I have tried waiting several minutes to make sure it wasn't just taking forever to load. Tried out the profiling tool and it comes to a halt as soon as the Start button is pressed. I have disabled every game object in my scene individually and all at once and it still will not load.

I tried loading a new empty scene instead and that seems to work fine.

Really stuck on this and would appreciate any help!

Comment
Add comment · Show 2
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 hexagonius · Jan 23, 2016 at 10:04 PM 0
Share

Check if you've added all necessary scenes to the build settings. Then, if an empty scene loads, but the other one does not, then there must be something wrong with it. Are you using while loops? Did you move things that should be in Resources folders to somewhere else (made this mistake myself)? Have you tried running a Debug build and watch the console on the device?

avatar image midgardweller hexagonius · Jan 24, 2016 at 01:30 AM 0
Share

Thanks for the reply!

All of the scenes are accounted for in build settings. No while loops that I can recall/find. I actually didn't have a Resources folder set up, but added one and threw all of my scenes in there...still no luck. I have tried a debug build and no errors show up. There are a couple warnings, but they are unrelated to the scene loading.

2 Replies

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

Answer by midgardweller · Mar 06, 2016 at 06:47 AM

I seem to have fixed the problem, though the answer doesn't really make sense to me. I traced the issue to a script that had a public AudioClip that was not being referenced anywhere in code. Commenting this out makes the scene load fine.

Strangely, there were no errors or warnings about the variable being assigned but never used or anything like it. Looks like Unity just failed silently specifically with building on Android.

Huh.

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 aymericos · Nov 09, 2020 at 02:42 PM 0
Share

I had the same issue. After this example above, I decided to track back errors. I had one invisible due to internationalization. Thanks

avatar image
4

Answer by dangerdex · Feb 08, 2017 at 08:18 AM

@midgardweller How did you diagnose this problem? I'm having a similar issue and wondering how you backtracked to find the underlying cause? Hoping I can repro your results.

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

51 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

Related Questions

Why is my scene loading differently on Android than other platforms? 0 Answers

How to load new scene contents based on a generated link from web? 0 Answers

LoadScene not working 0 Answers

obbdownloader relevance 0 Answers

Can not load the next scene 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