Hi,
When I dragged the item from the inventory to the ground to drop it. I thought would instantiate inventoryitempickupprefab( in characterinventorybridge) at this time, and then assign item and its information (such as amount)to the inventoryitempickupprefab. But in fact, I found that it was not. I checked the code and found that draging to drop the prefab is using the ItemObjectPrefab in ItemObjectSpawner. Why use the two prefabs separately?
Thanks!
When I dragged the item from the inventory to the ground to drop it. I thought would instantiate inventoryitempickupprefab( in characterinventorybridge) at this time, and then assign item and its information (such as amount)to the inventoryitempickupprefab. But in fact, I found that it was not. I checked the code and found that draging to drop the prefab is using the ItemObjectPrefab in ItemObjectSpawner. Why use the two prefabs separately?
Thanks!