Forge/Integration/BaseContainer.cs
/// <summary>
/// Finds the container that the given entity is attached to and destroys it and the
/// associated GameObject. This method should *only* be called by the LevelDesigner or the
/// GameEngineManager.
/// </summary>
Finds the container that the given entity is attached to and destroys it and the
associated GameObject. This method should *only* be called by the LevelDesigner or the
GameEngineManager.
Finds the container that the given entity is attached to and destroys it and the associated GameObject . This method should * only * be called by the LevelDesigner or the GameEngineManager .
public static void DestroyContainer(TDerived container) {
            if (Application.isEditor) {
                DestroyImmediate(container.gameObject);
            }
            else {
                Destroy(container.gameObject);
            }
        }
public static void DestroyContainer ( TDerived container ) { if ( Application . isEditor ) { DestroyImmediate ( container . gameObject ) ; } else { Destroy ( container . gameObject ) ; } }
Finds the container that the given entity is attached to and destroys it and the
associated GameObject.
Finds the container that the given entity is attached to and destroys it and the associated GameObject .
container
TDerived