Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 typane · Sep 03, 2012 at 02:35 AM · levelloadlevelapplication

Loading Level

As a pause menu option you are able to go to the main menu. The main menu is built into the game itself and is in the same scene. This plays an animation from the scene to the game in the space of 5 seconds. When you tap (because this is on android) the menu button it reloads the level using Application.LoadLevel. Now the issue is all find input has become unresponsive so I am unable to click anything on the screen. I do not have any DontDestroyOnLoad lines anywhere in my code, could someone please offer some potential issues that would be causing this?

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 typane · Sep 03, 2012 at 02:25 AM 0
Share

As an update, it realizes that there is input after the level is reloaded, but it will not start the co routines. I took them out and just enabled the primary events and it stuffs a lot of the code up

1 Reply

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

Answer by OperationDogBird · Sep 03, 2012 at 03:48 AM

I had the same issue the other day, a lingering line of code from an earlier version of my menu was setting the Time.scale to 0 after i reset it to the original scale from the newer version. Do some debug logs in the initializers in your new scene and make sure the timescale is proper(not 0). I realized this was the problem because my co-routines would not fire when reloading the scene (same thing you stated above), then it was the matter of tracking down where timescale didnt get reset.

In short, debug the Time.scale

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 typane · Sep 03, 2012 at 07:00 AM 0
Share

Will test it now but I have a feeling this is the exact issue since it is loading from a timescale 0.0 into one that relies on 1.0. It realizes input but doesn't follow with the coroutine. Will get back to you on the answer, thanks heaps for the quick response, I didn't realize the timeScale would carry cross scene.

avatar image typane · Sep 03, 2012 at 07:23 AM 0
Share

$$anonymous$$uch obliged it worked like a charm

avatar image Essential · Oct 08, 2012 at 02:21 AM 0
Share

Ahhh, the timescale from the pause menu! Thanks :)

avatar image damnjan.nikolic · May 18, 2014 at 08:01 PM 0
Share

I wasted hours trying to figure this, and it was this simple, thank you so much!!

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

10 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

Related Questions

Load Level in background and load it when key is pressed 2 Answers

reload level whilst saving certain objects, without dontdestroy() 2 Answers

Switching Levels 2 Answers

Application.LoadLevel wont work 0 Answers

timed out load level 2 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