Scene

TemporaryEffect

This component is generally added to Prefabs that contain ParticleEffects and Sounds. It will automatically delete the GameObject after the particles are all gone and the sounds are done.

This uses the ITemporaryEffect to see if all of the child effects are done. When they are, it will delete itself. You can implement the ITemporaryEffect interface on your own components to become compatible.

Source: Facepunch/sbox-docs (CC-BY-4.0) · updated 2025-04-04. Read it rendered on the official docs.

More in Scene

Community wiki — not affiliated with Facepunch Studios. For the latest and most authoritative information, see the official developer wiki.