|
Post by johnlanz on Feb 4, 2017 11:13:17 GMT
Hi Guys,
I've got this error when I spawned an AI (companion and enemy)
NullReferenceException: Object reference not set to an instance of an object Invector.v_AIAnimator.OnAnimatorMove () (at Assets/Invector-3rdPersonController/Melee Combat/Scripts/CharacterAI/v_AIAnimator.cs:61)
The code that I've used is just normal instantiate:
Instantiate (prefab, spawnPoint.position, spawnPoint.rotation); The error doesn't affect any AI behavior like patrol waypoints or attacking but I'm not sure its impact. Why did I get this error?
Thanks, John
|
|
|
Post by dreadlord on Feb 4, 2017 11:20:05 GMT
|
|
|
Post by johnlanz on Feb 4, 2017 12:11:20 GMT
Tnx dread. I'm confused at first where the Update Mode is since I was looking at the Animator window. You're talking about the Animator from the inspector. The error is gone now. tnx
|
|