So now, the particles have finished, and the vial and cork are no longer visible, but none of them is actually out of the scene. Before you update the VialAnimated prefab, you will want to add the Terminator script to take care of that. It defaults to 5 seconds, so you shouldn’t need to change the Life.
1. Add the Terminator script to the Animated Vial in the Hierarchy view.
2. Click Play and watch it go out of the scene and Hierarchy.
3. Stop Play mode.
4. Select the Animated Vial and click Apply at the top of the Inspector to update the prefab.
5. Delete the Animated Vial from the Hierarchy view.