Getting an unknown error "NullReferenceException"

Game keeps running and there is no hinder. But seeing this error and not able to find the cause is something that i want to overcome.

Hi,

Have you already tried to restart Unity and Visual Studio?

NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. If you exposed a field in the Inspector, make sure that it’s not empty.

If the game is running fine, check if there is a superfluous script in your Hierarchy.

Simply closing and restarting the game worked.
Thanks alot mam :star_struck:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms