Item Drop
Drop items or pickups from objects. Adding the component also adds Health to the object automatically, because the item drops when health runs out.
Introduction
Adding an Item Drop component automatically adds a Health component to the same object as well, because an item can only drop once the object is destroyed and its health reaches zero. Item Drop spills an item onto the ground when the object holding it is destroyed, like loot from a smashed crate. It needs a Health component on the same object, and it does not work on characters yet. The Item Drop component panel in the Uni editor Image The Item Drop component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Item Drop. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Properties
Drop Item Asset The item that falls out. Adding Item Drop also adds a Health component to the object automatically, since the item only drops when the object is destroyed. Drop Range Float The radius around the object where the item lands. Drop Effect Bool Shows a visual effect when the item drops. Drop Duration How long the drop effect lingers. Drop Rate Int The chance the item drops at all, from 0 to 100 percent. Property Type Description Every property on the Item Drop component.
Events
When Item Dropped Fires when the item falls out of the object. Prop: the item that dropped Event Description Parameter Every event on the Item Drop component. Each event links to its full guide, where its parameters and example live.
Commands
Item Drop has no commands.
Example
Destroy an object and drop its weapon Item Drop - Simple Example