Show / Hide Table of Contents

Class AutoDestroy

This component is used to automatically destroy an object after a set condition. This can be setup to:

  1. Destroy after a set amount of time has passed
  2. Destroy when the particle system on an object stops
  3. Destroy when an animation is done (via an animation event)

The destroy behaviour can also be customized

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
AutoDestroy
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class AutoDestroy : MonoBehaviour

Methods

| Edit this page View Source

Destroy()

Destroys the object

Declaration
public void Destroy()

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾