How to find a dropped prefab?

EVG

Member
Good afternoon. I am dropped the item with the code inventory.RemoveItem (inventory.GetItem(0).ItemType, 0, true); How to find a link to a dropped object?
dropped.png
 

Justin

Administrator
Staff member
Right now there isn't a way. One workaround would be to add a component to the dropped objects and then search for that component after remove item has been called.
 

Justin

Administrator
Staff member
No, still on my list :)

If you want to script it before I can get to it you'll need to modify the Item.Drop method.
 

EVG

Member
Hopefully, I will wait for the implementation in the near future :)
I would like something like this: GameObject spawnedObject= inventory.DropItem(inventory.GetActiveItem(0), 1, true, true);
 
Top