Error: Unable to initialize MySword. Ensure the weapon has a collider.

Velcer

Member
Hello, I'm following the tutorial videos closely to understand your framework, however I cannot seem to make the sword work. My weapon does have a collider. Here's the screenshots. Note on animator ID I tried 22 and 24, but none worked.

Code:
Error: Unable to initialize MySword. Ensure the weapon has a collider.
UnityEngine.Debug:LogError (object,UnityEngine.Object)
Opsive.UltimateCharacterController.ThirdPersonController.Items.ThirdPersonMeleeWeaponProperties:Awake () (at Assets/Opsive/UltimateCharacterController/Scripts/ThirdPersonController/Items/ThirdPersonMeleeWeaponProperties.cs:35)

1644418235283.png
1644418247951.png
1644418270800.png
 
The animator item ID defines which animation to play for your weapon. It has nothing to do with the initialization. The error is about not having a collider so you should check the third person visible item.
 
Yes, but the error message suggests that there is something wrong with your item. So, I would like to know whether it works with other items.
 
Top