Class SceneSetup2D
The setup of a 2D code-only scene: a compositor with the toolkit's UI stage, an orthographic camera looking down Z with the 2D camera controller, and a flat ground box below the origin. There are no lights and no sky; 2D materials are flat.
public sealed class SceneSetup2D : SceneSetup
- Inheritance
-
SceneSetup2D
- Inherited Members
- Extension Methods
Examples
game.Run(new SceneSetup2D { ClearColor = Color.CornflowerBlue }.UseBepu(), start: Start);
Constructors
SceneSetup2D()
Creates the setup with its defaults: an orthographic camera with the controller and a flat ground.
public SceneSetup2D()
Properties
Default
A fresh setup with every property at its default.
public static SceneSetup2D Default { get; }