Nez.Portable/ECS/Scene.cs
/// <summary>
/// helper that creates a scene of type T with the DefaultRenderer attached and ready for use
/// </summary>
/// <returns>The with default renderer.</returns>
helper that creates a scene of type T with the DefaultRenderer attached and ready for use
helper that creates a scene of type T with the DefaultRenderer attached and ready for use
[Obsolete("use new Scene() instead")]
        public static T createWithDefaultRenderer<T>(Color? clearColor = null)
            where T : Scene, new()
        {
            var scene = new T();
            if (clearColor.HasValue)
                scene.clearColor = clearColor.Value;
            scene.AddRenderer(new DefaultRenderer());
            return scene;
        }
[ Obsolete ( " " ) ] public static T createWithDefaultRenderer < T > ( Color ? clearColor = null ) where T : Scene , new ( ) { var scene = new T ( ) ; if ( clearColor . HasValue ) scene . clearColor = clearColor . Value ; scene . AddRenderer ( new DefaultRenderer ( ) ) ; return scene ; }
helper that creates a scene of type T with the DefaultRenderer attached and ready for use
helper that creates a scene of type T with the DefaultRenderer attached and ready for use
The with default renderer.
The with default renderer .
clearColor
Color?