GameObjectExtensions.DestroyChildrenImmediate
Extension Method in GameObjectExtensions
Declaration
public static void DestroyChildrenImmediate(this GameObject parent, bool allowDestroyingAssets = false)
Description
Destroys all children game objects of the parent immediately. You are strongly recommended to use DestroyChildren instead.
Parameters
parent | The parent game object to destroy the children of. |
allowDestroyingAssets | Allows project assets to be destroyed (default=false). |