magique
Active member
I'm following the video on setting up a melee weapon and there are a few differences in the video and the current asset. When I get to 10:30 in the video where it talks about the Item Set Manager, I noticed that my character doesn't have any item sets at all, but just the default loadout. So, I don't know why that didn't happen. So, I went ahead and added them myself. The Item Set 0 works fine and I assign the item type to sword, but when I try to set the second item set to Body type, it complains with the following error:
Error: Unable to add ItemType Body - the ItemType category doesn't match the parent category.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Editor.Inspectors.Inventory.ItemSetManagerInspectorrawSelectedItemSet(ItemSet, Int32) (at Assets/Opsive/UltimateCharacterController/Editor/Inspectors/Inventory/ItemSetManagerInspector.cs:352)
Opsive.UltimateCharacterController.Editor.Inspectors.Inventory.ItemSetManagerInspector:OnInspectorGUI() (at Assets/Opsive/UltimateCharacterController/Editor/Inspectors/Inventory/ItemSetManagerInspector.cs:104)
UnityEngine.GUIUtilityrocessEvent(Int32, IntPtr)
I thought this might be some mismatch between the DemoItemCollection and my own ItemCollection, but I've double checked everything and I'm only reference my items from my collection and my item types from my item collection. At one point it didn't throw the error at all, but the Body item type just never got assigned to the inspector field.
Error: Unable to add ItemType Body - the ItemType category doesn't match the parent category.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Editor.Inspectors.Inventory.ItemSetManagerInspectorrawSelectedItemSet(ItemSet, Int32) (at Assets/Opsive/UltimateCharacterController/Editor/Inspectors/Inventory/ItemSetManagerInspector.cs:352)
Opsive.UltimateCharacterController.Editor.Inspectors.Inventory.ItemSetManagerInspector:OnInspectorGUI() (at Assets/Opsive/UltimateCharacterController/Editor/Inspectors/Inventory/ItemSetManagerInspector.cs:104)
UnityEngine.GUIUtilityrocessEvent(Int32, IntPtr)
I thought this might be some mismatch between the DemoItemCollection and my own ItemCollection, but I've double checked everything and I'm only reference my items from my collection and my item types from my item collection. At one point it didn't throw the error at all, but the Body item type just never got assigned to the inspector field.