GameObjectExtensions.DestroyChildren
Extension Method in GameObjectExtensions
Declaration
public static void DestroyChildren(this GameObject parent)Description
Destroys all children game objects of the parent.
Parameters
| parent | The parent game object to destroy the children of. |
Overload
Declaration
public static void DestroyChildren(this GameObject parent, float delay)Description
Destroys all children game objects of the parent after a delay.
Parameters
| parent | The parent game object to destroy the children of. |
| delay | The delay before destroying the game objects. |