Errors after creating the Prefab variant just after adding the Enemy and Player

Ive done the remove scripts from character prefab and re-add and yet I am still getting the same error as someone who posted this before.

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

Hi David,
If you highlight the error message, it should tell you the script and line that has the null reference error (NRE), which should tell you which components are missing on your characters. Without this information, it’s difficult to pin down what’s missing.
Can you post a copy of the expanded null reference exception, along with the script that it is pointing to? (generally the first script in the callback).

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

Privacy & Terms