Summary

Destroys a GameObject after a number of seconds. If the GameObject or its children have any components that implement ITemporaryEffect we will wait for those to be finished before destroying. This is particularly useful if you want to delete a GameObject but want to wait for sounds or particles to conclude.

Fields

DestroyAfterSeconds Number of seconds to wait before destroying
WaitForChildEffects If true we will wait for any ITemporaryEffect's to finish before destroying

Static Methods

CreateOrphans
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.