Table of Contents

Namespace Stride.CommunityToolkit.Engine

Classes

AnimationComponentExtensions

Provides extension methods for the AnimationComponent to enhance animation playback functionality.

CameraComponentExtensions

Provides a set of static methods for working with CameraComponent instances.

CameraDefaults

Provides default settings for camera initialization within a game or scene, including default positions, rotations, and the main camera name.

CameraSetup

The camera of a SceneSetup: its projection, where it starts, and whether it gets the camera controller. Built through Perspective(Vector3?, Vector3?) or Orthographic(Vector3?, Vector3?, float?), then WithController(Anchor?, bool).

EntityComponentCollectionExtensions

Extension methods for IEnumerable<T> and IEnumerable<T>.

EntityExtensions

Provides extension methods for the Entity class to simplify common operations, such as adding camera controllers, gizmos, and retrieving or manipulating components.

EntitySearchExtensions

Provides extension methods for searching and retrieving EntityComponent instances within an Entity hierarchy. This class includes methods for performing breadth-first and depth-first searches to find components in children, descendants, and ancestors of an entity.

GameDefaults

Provides shared default values used by game setup helpers.

GameExtensions

Provides extension methods for the Game class to simplify common game setup tasks, such as adding cameras, lights, and ground entities, as well as configuring scenes and running the game with custom logic.

GameLoopExtensions

Settings for the game loop itself, as opposed to what is in the scene.

GameModelExtensions

The models a game keeps: one per shape and material, shared by every entity that asks for it.

GameServiceExtensions

The engine systems a Game exposes as properties, reached through the service registry so that every toolkit helper can take an IGame: the type a script's Game property has.

GameSettingsExtensions

What a Game Studio project gets from its GameSettings asset, made available to a game that has none.

GradientSkyboxSetup

A sky with no texture of its own: a small cubemap built on the CPU from three colours, zenith, horizon and nadir, then lit the way a photographed sky is. The default of Skybox.

GraphicsCompositorHelper2D

Provides helper methods for creating and configuring 2D graphics compositors.

GroundExtensions

Extension methods on Game that add a ground to the root scene, with a static collider from the physics engine the scene setup chose.

GroundSetup

The ground of a SceneSetup: a plane in 3D, a flat box in 2D, of a width and a length, with a collider from the setup's physics engine unless Collider is off. Built through Plane(Vector2?) or Visual(Vector2?).

LightingSetup

The lights of a SceneSetup3D: one directional light, the three-light studio rig, or a light down each world axis. Built through Directional(float, bool), Studio(float, float, bool) or AllDirections(float).

ModelComponentExtensions

Provides extension methods for the ModelComponent class, enabling additional functionality such as calculating model dimensions and extracting mesh data.

PhysicsSetupBase

The physics engine a scene setup chose, as the core sees it: the one that gives a created primitive its body or collider. The physics packages implement it and UseBepu() or UseBullet() set it on the setup; the core alone has None, which attaches nothing.

PrefabExtensions

Extension methods for Prefab.

PrimitiveEntityOptions

The options of a primitive entity created with CreatePrimitive: its name, material, render group, position, and the kind of physics the chosen engine gives it.

SceneExtensions

Provides extension methods for the Scene class: finding its camera, and finding an entity by name.

SceneSearchExtensions

Finds components anywhere in a scene or in the whole running game, the scene-wide counterpart of EntitySearchExtensions.

SceneSetup

What a code-only game needs before its own content, as data: the graphics compositor, the camera, the ground, the physics engine and the engine settings. Run(Game, SceneSetup, Action<Scene>?, Action<Scene, GameTime>?, GameContext?) applies it before the start callback, in a fixed order, so the callback holds only the scene's own content.

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.

SceneSetup3D

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.

ScreenshotCapture

Captures a screenshot of a running game after a set number of frames, then exits.

ScriptComponentExtensions

Provides extension methods for ScriptComponent: the frame time, and the cameras the GraphicsCompositor renders with.

ScriptSystemExtensions

Provides extension methods for the ScriptSystem to facilitate time-based operations, including delays and frame-based executions. These extensions are useful for managing time in game logic, such as delaying actions or executing logic over a period of time.

SkyboxSetupBase

The sky of a SceneSetup3D: the background and the image-based light of the scene. The core offers GradientSkyboxSetup; the skyboxes package derives its photographed sky and offers it through UseSkybox().

TransformExtensions

Extension methods for TransformComponent.

WindowsDpiManager

Declares the process DPI aware from code, and reports whether it is - the two things about DPI that are Windows-only.

Enums

BodyMode

What kind of physics a created primitive gets from the engine the scene setup chose.

LightingRig

The light rigs a LightingSetup can build.

Space

The coordinate space in which to operate.

WindowsDpiManager.ProcessDpiAwareness

Public representation of process DPI awareness values.