Hello, I have aproblem with equipping items and have no idea what may be wrong really.
I am adding an item to inventory:
Item appears in inventory from which I select it an run (using CharacterInventoryBridge):
As a result I get:
The item I am trying to add is a torch and it is part of Torches category (which is a child of Equippable). I have no idea what I may be missing here.
I am adding an item to inventory:
C#:
Inventory inventory = characterObject.GetCachedComponent<Inventory>();
inventory.MainItemCollection.AddItem((ItemInfo)(InventorySystemManager.CreateItem(ItemDefinitionInfo), 1));
Item appears in inventory from which I select it an run (using CharacterInventoryBridge):
C#:
Item item = bridge.GetCharacterItem(inventoryItem.Item);
bridge.MoveEquip(inventoryItem, true);
As a result I get:
Code:
The Item Set for item 1 Basic Torch (3689255319) || ItemCollection Default (Main) || ItemStack(-762314086)[ 1 Basic Torch (3689255319) in ItemCollection Equippable Slots (Equipped)] could not be found and therefore the item could not be equipped. Perhaps you are missing an item Set Rule for this item?
UnityEngine.Debug:LogWarning (object)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.CharacterInventoryBridge:Equip (Opsive.UltimateInventorySystem.Core.DataStructures.ItemInfo,bool,bool,bool) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/CharacterInventoryBridge.cs:606)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.CharacterInventoryBridge:MoveEquip (Opsive.UltimateInventorySystem.Core.DataStructures.ItemInfo,int,int,bool) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/CharacterInventoryBridge.cs:582)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.CharacterInventoryBridge:MoveEquip (Opsive.UltimateInventorySystem.Core.DataStructures.ItemInfo,bool) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/CharacterInventoryBridge.cs:566)
RPG.Scripts.InventoryItemButton:ButtonClicked () (at Assets/RPG_Game/Scripts/RPG.Scripts/Inventory/InventoryItemButton.cs:29)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)
The item I am trying to add is a torch and it is part of Torches category (which is a child of Equippable). I have no idea what I may be missing here.