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 /
This question was closed Oct 31, 2015 at 05:03 PM by PeterJurkovsky for the following reason:

time.scale to 0 was the problem - http://answers.unity3d.com/questions/467519/restarting-scene-not-working-properly.html

avatar image
1
Question by PeterJurkovsky · Nov 02, 2015 at 03:35 PM · scenescene-loadingrestart

Restarted scene not working properly

Hello guys I need your help,

I have some scenes in my game:

  • MainMenu scene

  • Intro scene

  • Level selection scene

  • Level1 scene

In IntroScene there are 2 game objects with animations (animator component attached) and particle system (as prefab). When I play intro scene everything works properly.

Once Level1Scene was loaded and then I try to load IntroScene again, this IntroScene is not working properly - it means that animations are not playing and particle system is not working as well.

So the question is, why animators and particle system is not working when I try to load the scene again?

..also, important thing is that it is not happening everytime I try to restart IntroScene, it just happens when I first load Level1Scene and then IntroScene again. :/

I am not using any static fields in introScene and to reload scenes I am using : Application.LoadLevel("Scenename") ;

Thank you.

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 meat5000 ♦ · Nov 02, 2015 at 08:26 AM 0
Share

Its likely that your scripts have some dependency on other scripts on other objects. Perhaps some things are re-executing in the wrong order. Check for object presence in your scripts.

avatar image vinay-2477 · Jun 17, 2016 at 12:17 PM 0
Share

Check if you ve reseted the value Time.timeScale=1; in our code. This solution only works when u ve set Time.timeScale=0; in our script.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

garbage collection in between scene changes? 2 Answers

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

Game build often crashes when switching scenes 0 Answers

Loading and Unloading scenes 2 Answers

SceneManager.LoadScene is crashing or freezing for Android Devices 3 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