API Referenceglobal
TemporaryEffectclass
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.
Constructors1
Showing 1 constructors
public TemporaryEffect()
No results match this filter.
Methods2
Showing 2 methods
public static void CreateOrphans(Sandbox.GameObject gameObject, bool disableLooping = True)
Look at the children in this GameObject and orphan any temporary effects
| Parameter | Type | Description |
|---|---|---|
| gameObject | GameObject | — |
| disableLooping = True | bool | — |
Returns:
void—public virtual void OnParentDestroy()
Returns:
void—No results match this filter.