Getting a lot of null reference errors but is it a problem?

So I just made the title screen and i’m getting all these errors but the game works. Its because the title screen doesn’t have most of the objects the scripts were referencing from. If it is a problem what should I do to remove these errors.

Heres the screenshot.

Uncaught exceptions are generally a bad thing. At the very least they cost in performance. And they can obscure more important issues.

If it truely does not matter if the references are null, wrap the access to the references in a null check.

2 Likes

Null check, or have a bool changed when the scene changes or the Start button is clicked, or something.

1 Like

OK awesome. Thanks you two. I did the nullcheck and wrapped some of the references inside an if statement with a condition " SceneManager.GetActiveScene().name==“GamePlay”"