Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Null reference exception

A topic by Bigman101 created May 15, 2022 Views: 181 Replies: 3
Viewing posts 1 to 4

this is where i get the error

this is where the error is
this what im calling
this is what I'm calling also there in different scripts
I've got a null reference exception when I try to call a void in another script pls help
Submitted

In which line are you getting the null reference? Null reference exception means what you are trying to  access something that has no reference, so it could be that you have no reference to your GameManager when calling the "nextLevel" method. 

you probably wrote the scene name wrong. an other way to change scenes is with their index number which also makes it easier to go to the next level maybe take a look at that.

thanks I will try that