Table of Contents

Class ScreenFadeExtensions

Namespace
Stride.CommunityToolkit.Shapes
Assembly
Stride.CommunityToolkit.Shapes.dll

Puts a ScreenFade in the game.

public static class ScreenFadeExtensions
Inheritance
ScreenFadeExtensions

Methods

AddScreenFade(IGame, Color?)

Adds a ScreenFade to the root scene on an entity of its own and returns it, ready for Transition(float, Action, float) and the rest.

public static ScreenFade AddScreenFade(this IGame game, Color? color = null)

Parameters

game IGame

The game, with its scene and compositor set up.

color Color?

The colour the screen fades to, or null for black.

Returns

ScreenFade

The fade, to start transitions on.

Exceptions

ArgumentNullException

Thrown when game is null.