• 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
0
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: 

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

When animation finishes, restart the scene 0 Answers

Switching active scene to loaded additive scene does not change camera/render 1 Answer

Loading and Unloading scenes 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges