Pop out items
-
- Posts: 5
- Joined: Thu May 11, 2023 9:44 am
Pop out items
Is there any way we can pop out items out of a chest or crate? For example, when we interact with a crate, it releases an item to the world where we can pick it up. Thank you.
Re: Pop out items
Hi,
If you're using the Dialogue System's Selector / Proximity Selector component on the player and a Usable component on the chest, you can configure the Usable component's OnUse() UnityEvent to play an "open" animation on chest, maybe activate a particle system for visual effect, and activate an item pickup GameObject.
If you're using the Dialogue System's Selector / Proximity Selector component on the player and a Usable component on the chest, you can configure the Usable component's OnUse() UnityEvent to play an "open" animation on chest, maybe activate a particle system for visual effect, and activate an item pickup GameObject.