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

parentThe parent game object to destroy the children of.
allowDestroyingAssetsAllows project assets to be destroyed (default=false).