Class ScreenFadeExtensions
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
gameIGameThe game, with its scene and compositor set up.
colorColor?The colour the screen fades to, or null for black.
Returns
- ScreenFade
The fade, to start transitions on.
Exceptions
- ArgumentNullException
Thrown when
gameis null.