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 GreatCorn · Sep 09, 2018 at 11:04 PM · crashfreezeload scenescene changenot responding

Changing scenes crashes the game

I'm making a PC game where I need to change some scenes from time to time. I use simple lines like

 SceneManagement.SceneManager.LoadScene ("menu");

But after doing some scene changes the game crashes(the freezing "not responding" type of thing) on a lot of computers. I tried adding SceneManagement.LoadSceneMode.Single, or even SceneManager.UnloadSceneAsync(UIManager.Instance.currentScene);, but none of these worked. Any help please?

I have a splash scene, which transitions to a menu scene and then from the menu it can change to the game intro(new game), or load the game on the first main level, or the second. When players start a new game the intro scene is going to change to the first level. After that, if they beat the first level they will get access to the second one. But when they try to load it the game crashes. Changing this level file to level0 works okay and on my PC everything there works as intended. Nothing is creating a loop, it's just the "too much scene changes", because I had an another PC on which a dude died which led him to the "game over" scene and from there he couldn't either start a new game or load a game because it freezed forever.

This only happens to other players on the built game.

Comment
Add comment · Show 1
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 D3Duck · Sep 10, 2018 at 12:39 AM 0
Share

You'll need to be more specific so we can help you out. 8s there a specific scene that causes the freeze? Did you try transitioning to an empty scene? Does it still freeze?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tormentoarmagedoom · Sep 10, 2018 at 06:50 AM

Good day.

As D3Duck says, we need more info, YOU need more info.

Are you sure the cause is loading too much? Maybe is always the same scene that freezes, or some method with a "while" creating a infinite loop, or some resource that is corrupted, etc..

You need first to be sure what is causing the freeze, you can debug the code, change scene loading order, etc... to be sure what is the cause.

Bye!

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 GreatCorn · Sep 11, 2018 at 06:27 PM 0
Share

I have a splash scene, which transitions to a menu scene and then from the menu it can change to the game intro(new game), or load the game on the first main level, or the second. When players start a new game the intro scene is going to change to the first level. After that, if they beat the first level they will get access to the second one. But when they try to load it the game crashes. Changing this level file to level0 works okay and on my PC everything there works as intended. Nothing is creating a loop, it's just the "too much scene changes", because I had an another PC on which a dude died which led him to the "game over" scene and from there he couldn't either start a new game or load a game because it freezed forever.

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

96 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

Related Questions

Unity 5 Freezes while building? 15 Answers

Seemingly Random Unity lock-ups (not responding) with 0% CPU Usage 3 Answers

iOS game freezes on startup 0 Answers

Webplayer Freeze / Crash After Facebook Interaction 0 Answers

Unity freezes sometimes when I'm tabbed out. 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