I get the following error when dropping an item

ymo

Member
I get the following error when dropping an item

The Prefab attribute value is null, please assign a default value or in the attribute, make sure the item Bear Brisket (1818458296) has a non-null value for attribute: PickupPrefab.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateInventorySystem.DropsAndPickups.ItemObjectView:SetVisualInternal(Item) (at Assets/Opsive/UltimateInventorySystem/Scripts/DropsAndPickups/ItemObjectView.cs:143)
Opsive.UltimateInventorySystem.DropsAndPickups.ItemObjectView:UpdateViews() (at Assets/Opsive/UltimateInventorySystem/Scripts/DropsAndPickups/ItemObjectView.cs:92)
Opsive.Shared.Events.InvokableAction:Invoke()
Opsive.Shared.Events.EventHandler:ExecuteEvent(Object, String)
Opsive.UltimateInventorySystem.Core.ItemObject:OnDisable() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/ItemObject.cs:126)
 
Read carefully the error.

It says that your "PickupPrefab" attribute does not exist or that it has a NULL value.

Go in the Item Definition Editor Manager and add the a prefab to your Bear Brisket item.

I would recommend you add a default prefab in the Category where you defined the "PickupPrefab" attribute this way you do run in this sort of issue.
 
  • Like
Reactions: ymo
Top