Hello again!
I am having another problem that I am hoping you can help me with. I feel like I must be doing something silly, but I can't figure out what the problem is.
I am trying to drop items from my inventory, and have them spawn the item prefab next to my character. The prefab has the Item Pickup Component and is linked to the item definitions as "PickupPrefab". However, when I try to drop the item with the "Drop" action, it tells me "Item Pickup Prefab is Null on the Drop Item Action". I see that there is a slot for a prefab, but I don't want to drop the same prefab for every item.
Do I need to make a separate drop action for each item? Or is there a way to tell it to instantiate the prefab associated with the item definition?
Thank you for your help again!!
EDIT:
Okay, wait. I think I might see what you're doing here. I set up a default drop prefab, and the added the visualizer to help it find the right prefab. It drops the right objects now!
Do I need to change these fields to make sure that the dropped items spawn properly?
EDIT AGAIN:
I see they are all spawning as drop default clones with the correct components. This seems right! Lol so glad I figured it out. I'll leave this here though if anyone else needs the help.
I am having another problem that I am hoping you can help me with. I feel like I must be doing something silly, but I can't figure out what the problem is.
I am trying to drop items from my inventory, and have them spawn the item prefab next to my character. The prefab has the Item Pickup Component and is linked to the item definitions as "PickupPrefab". However, when I try to drop the item with the "Drop" action, it tells me "Item Pickup Prefab is Null on the Drop Item Action". I see that there is a slot for a prefab, but I don't want to drop the same prefab for every item.
Do I need to make a separate drop action for each item? Or is there a way to tell it to instantiate the prefab associated with the item definition?
Thank you for your help again!!
EDIT:
Okay, wait. I think I might see what you're doing here. I set up a default drop prefab, and the added the visualizer to help it find the right prefab. It drops the right objects now!
Do I need to change these fields to make sure that the dropped items spawn properly?
EDIT AGAIN:
I see they are all spawning as drop default clones with the correct components. This seems right! Lol so glad I figured it out. I'll leave this here though if anyone else needs the help.
Last edited: