- Home /
Restart Scene In ECS Job Systems
I made a roll a ball game using ecs by following a tutorial by turbo makes games. The thing is i want to add a restart btn to the screen. In the restart function I simply wrote SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
But it is not working as it would normally work in classical unity. Unity just crashes. Any help would be awesome. I just started learning ECS and currently stuck in this problem. Hope you have a good day.
Answer by andrew-lukasik · Jul 18, 2020 at 09:12 PM
Dispose()
relevant worlds and then reload your scene.
This particular crash is probably a bug tho. You may want to report it IF all the packages and editor are up to date.
Also - it's a good idea to show your crash log (call stack when crash happened).
Your answer
Follow this Question
Related Questions
Unsafe.dll from Unity version conflicts with Unsafe.dll from standard collections package. 1 Answer
Adding to delegate with multiple instances of the same object 1 Answer
MissingReferenceException after loading a scene, missing object of type text and button. 0 Answers
Best practices for increasing scene load times in 2d games 1 Answer