N nitrox32 Member Apr 25, 2019 #1 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)
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)
Justin Administrator Staff member Apr 26, 2019 #2 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.
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.
N nitrox32 Member Apr 27, 2019 #3 Ah, that makes sense. I was using a plain capsule as a target for testing. Thanks.