Play mode is permanently paused

If I start from “Options” scene, my play mode is frozen in pause state, which is different from the lecture. However, if I start from “Splash” scene where “MusicManager” is present, the phenomenon is not observed. Could somebody suggest a reason?

1 Like

When playing a game in the editor. Unity can pause when it hits an error.

If you look at the lowe left of the screen there is a NullReference error in red there.
This area when testing will show the last consile output, in this case its an error.

If you click on the console window it should tell you a little more on the error it encountered.

This sort of error is normally when trying to use a variable in a script that hasnt been set.

Have a look at what you have in the scenes heirachy and ensure that all the public slots in the inspector are set to something.

1 Like

The MusicManager is created on the splash screen. In the options screen you will invariably be trying to access it, and it doesn’t exist.

1 Like

Ah. Cool, i should really go back and do the lessons again myself for a refresher.

1 Like

Thank you. I have considered this issue. However, in the video, Ben was able to play in play mode even though he didn’t start from “Splash” screen.

1 Like

Does it give you the same error and problem if you do start at the splash screen?

Sorry, just realised you had answered my question in your original post.

I would personally run the game from the beginning each time, especially when you know you have components that are only created at the beginning.

1 Like