- Home /
Same prefab getting instantiated for the different items
I'm trying to make items appear on the ground when they're dropped, and I finally got them to instantiate, but instead of their own prefabs, it's a clone of my water bottle item.
Here's the instantiate code:
``` public void DropItem() { Instantiate(this.item.Object, player.transform.position, player.transform.rotation); }```
I call on that method when the remove button in my inventory is pressed.
Comment
Is this.item.Object
the prefab you want, or just the water bottle prefab?
Your answer
![](https://koobas.hobune.stream/wayback/20220612165922im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I want to know how to drop my item with a keyboard button 1 Answer
Random drop rate problem 2 Answers
inventory system: drop item with mouseclick 1 Answer
Item Drop Help 1 Answer
Pickup item and move with it -1 Answers