Table of Contents

Class SceneSetup3D

Namespace
Stride.CommunityToolkit.Engine
Assembly
Stride.CommunityToolkit.dll

The setup of a 3D code-only scene: a forward compositor with the toolkit's UI stage, a perspective camera with the camera controller, a directional light, a gradient sky and a ground plane. Run(Game, Action<Scene>?, Action<Scene, GameTime>?, GameContext?) with no setup applies this one.

public sealed class SceneSetup3D : SceneSetup
Inheritance
SceneSetup3D
Inherited Members
Extension Methods

Examples

game.Run(new SceneSetup3D { Ground = null, Lighting = LightingSetup.Studio() }.UseBepu(), start: Start);

Constructors

SceneSetup3D()

Creates the setup with its defaults: a perspective camera with the controller, a directional light, a gradient sky and a ground plane.

public SceneSetup3D()

Properties

Default

A fresh setup with every property at its default.

public static SceneSetup3D Default { get; }

Property Value

SceneSetup3D

Lighting

The lights, or null for none. Defaults to Directional(float, bool).

public LightingSetup? Lighting { get; set; }

Property Value

LightingSetup

Skybox

The sky, which also lights the scene, or null for none. Defaults to the core's gradient sky; the skyboxes package offers a photographed one through UseSkybox().

public SkyboxSetupBase? Skybox { get; set; }

Property Value

SkyboxSetupBase