EnemyPathing: Waypoints Null reference

So I noticed I am getting a lot of null reference exceptions on the EnemyPathing update (and once on start). I know how to fix it with simple if !null check but I am wondering why I’m even having this issue at all where it doesn’t seem like it came up in the video or anyone else is running into the same errors. Checking the actual change log cs files I noticed there was no null check so I must be setting something wrong but not sure what I missed.

The script works perfectly but those errors look naughty, especially the one in update since everything should have been set by then.

1 Like

Nevermind. I realized I left an old enemy object in my scene that was not attached to anything. Just a silly oversight.

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

Privacy & Terms