Level Generator 2D

DestroyedWhenEmpty Class

Destroys a GameObject when it has no children nor components

Namespace:  CustomUnityLibrary
Assembly:  Level Generator 2D.CSharp (in Level Generator 2D.CSharp.dll)

Syntax


public class DestroyedWhenEmpty : MonoBehaviour

Inheritance Hierarchy


Object
  Object
    Component
      Behaviour
        MonoBehaviour
          CustomUnityLibrary..::..DestroyedWhenEmpty