How was the Instructor Playing while having a compilation error?

I had the same NullReferenceException error and once I clicked Play the game screen froze and wouldn’t let me move to test the script out. Is there a setting to allow you to Play during this? About to move on to the next lecture where it seems like the instructor will be working through these errors, but for this lecture I feel like I missed something.
Screenshot 2023-08-08 at 6.03.43 AM

NullReferenceException: Object reference not set to an instance of an object
Sword.MouseFollowWithOffset () (at Assets/Scripts/Inventory/Sword.cs:90)
Sword.Update () (at Assets/Scripts/Inventory/Sword.cs:35)

1 Like

I found that the Error Pause was highlighted so I de-selected that and problem solved.
Screenshot 2023-08-08 at 6.28.42 AM

That would do it, but you should really rather fix the error

The error wasn’t talked about until the next lecture which he mentions at the end of this one, so it was more of an inquiry about Unity.

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

Privacy & Terms