What is the error?

nitrox32

Member
What is the error?

NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Traits.CharacterHealth.Start () (at Assets/Opsive/UltimateCharacterController/Scripts/Traits/CharacterHealth.cs:68)
 
Line 68 of CharacterHealth points to:

Code:
m_ColliderGameObjects = new GameObject[m_CharacterLocomotion.ColliderCount];

The only time this will likely be null is if you assign CharacterHealth to a non-character GameObject.
 
Top