Nez.Portable/ECS/Scene.cs
/// <summary>
/// removes the first SceneComponent of type T from the components list
/// </summary>
/// <returns><c>true</c>, if component was removed, <c>false</c> otherwise.</returns>
/// <typeparam name="T">The 1st type parameter.</typeparam>
removes the first SceneComponent of type T from the components list
removes the first SceneComponent of type T from the components list
public bool removeSceneComponent<T>()
            where T : SceneComponent
        {
            var comp = getSceneComponent<T>();
            if (comp != null)
            {
                removeSceneComponent(comp);
                return true;
            }
            return false;
        }
public bool removeSceneComponent < T > ( ) where T : SceneComponent { var comp = getSceneComponent < T > ( ) ; if ( comp != null ) { removeSceneComponent ( comp ) ; return true ; } return false ; }
removes the first SceneComponent of type T from the components list
removes the first SceneComponent of type T from the components list
None
typeparam
The 1st type parameter.
The 1st type parameter .