NullReferenceException: Object reference not set to an instance of an object

There’s a bug in this lecture if we destroyed the game object and then we instantiate a ballista(tower canon) we get an error of NullReferenceException: Object reference not set to an instance of an object and its not solved in the later lectures.

Sounds like gobbledegook to the Blender section! Best move it to whichever game type it is related to! :grin:

1 Like

ops! wrong section i am sorry :0.

1 Like

Hi,

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.

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

Privacy & Terms