Nez.Portable/ECS/Scene.cs
/// <summary>
/// Adds and returns a SceneComponent to the components list
/// </summary>
/// <returns>Scene.</returns>
/// <typeparam name="T">The 1st type parameter.</typeparam>
Adds and returns a SceneComponent to the components list
Adds and returns a SceneComponent to the components list
public T addSceneComponent<T>()
            where T : SceneComponent, new()
        {
            return addSceneComponent(new T());
        }
public T addSceneComponent < T > ( ) where T : SceneComponent , new ( ) { return addSceneComponent ( new T ( ) ) ; }
Adds and returns a SceneComponent to the components list
Adds and returns a SceneComponent to the components list
None
typeparam
The 1st type parameter.
The 1st type parameter .