Class DestroyedWhenEmpty Destroys a GameObject when it has no children nor components Inheritance MonoBehaviour DestroyedWhenEmpty Namespace: Alegra.DimSums Assembly: cs.temp.dll.dll Syntax public class DestroyedWhenEmpty : MonoBehaviour