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
0
Question by rashad · Jan 07, 2020 at 04:06 PM · scenescene-loadingscene-switching

Level Softlocks when loaded

Hello,

I have a problem on when I complete a level in my game and when it goes to the next one, in the hierarchy it states that the level is loading back and forth with the loading scene. I don't know what is causing this to happen or how to fix it.

In addition, I looked at the script that loads the scenes in and it works normally since it's the same one being used in my Main Menu alt text

help.png (67.2 kB)
helpp.png (74.1 kB)
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 Anis1808 · Jan 07, 2020 at 04:24 PM 0
Share

Are you loading your scene asynchronously? If yes try LoadScene ins$$anonymous$$d.

avatar image rashad Anis1808 · Jan 07, 2020 at 06:32 PM 0
Share

It's using LoadScene

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by unity_ek98vnTRplGj8Q · Jan 07, 2020 at 04:33 PM

This often happens when you are accidentally loading your scene repeatedly. Make sure the call to load the scene gets called only once, and that whatever trigger you use to signal a new scene load isn't triggering immediately once a new scene is loaded again.

Comment
Add comment · Show 4 · 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 rashad · Jan 07, 2020 at 04:44 PM 0
Share

How do I find where it is repeatedly calling the function telling to load the level? I'm looking in the spots where the I call "LoadNextScene" but they're in the right places that I see.

avatar image Bunny83 rashad · Jan 07, 2020 at 05:17 PM 1
Share

Well, how should we tell you where in your code (which we don't know) you load the level again? Unity does not load any level automatically except the first level and this only once at startup in a build.


Since you have some DontDestroyOnLoad objects in your scene / old scene I see two possible reasons:

  • First you might have a persistant script from the last scene which does load the scene over and over again.

  • Second you might have a script inside the newly loaded scene which causes the scene to be reloaded.


We can not check any of those things since we have no idea what your scripts look like and where those scripts are attached to.


Please edit your question and add the relevant code if you still need help with your issue. Otherwise debugging your project is up to you. Again this is not a Unity issue, this is an issue in your code. We don't play "guess my error" here.

avatar image rashad Bunny83 · Jan 07, 2020 at 06:08 PM 0
Share

I think you might be on to something. I'll check my Game$$anonymous$$anager Script since that the main script that has DontDestroyOnLoad function on it and see if that might be the root of the cause.

Show more comments

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

147 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 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

How Do I Link Different Scenes? 4 Answers

Change Scene keeping Character and GUI Canvas 1 Answer

Scene Loading Issue. 0 Answers

Can't find game object / script after scene re-enter 1 Answer

Canvas gets invisble after changing scene 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