Getting this error when the crash sound is called

NullReferenceException: Object reference not set to an instance of an object
CollisionHandler.StartCrashSequence () (at Assets/Scripts/CollisionHandler.cs:45)
CollisionHandler.OnCollisionEnter (UnityEngine.Collision other) (at Assets/Scripts/CollisionHandler.cs:29)

Morning, I’ve moved to the Ask tag. have you got a copy of your collisionhandler script please.

with that error, it looks like its trying to find an object or a component and it cant.

Also confirm that you have a signed it in the inspector.

i was able to correct the error, it was calling for something that was not there. funny enough I had seen that exact error in my job on a helpdesk. but as of now its been corrected

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

Privacy & Terms