Table of Contents

Extensions

Each extension addresses common game development scenarios. They encapsulate setup details so you can focus on game logic.

Feel free to inspect and modify the source to adapt behavior or create your own variants. These are starting points, use them as-is or customize as needed.

Practice and exploration help you master Stride. Tinker with the extensions and start building!

GameExtensions.cs

Some extensions return Entity so it can be further modified.

Done

GraphicsCompositorExtensions.cs

  • AddCleanUIStage() - Adds a UI render stage and a clean white text effect to the GraphicsCompositor.

ToDo

  • AddGizmo() - Adds a gizmo to the ground.

ScriptComponentExtensions.cs

DeltaTime() Done Returns delta time as float seconds
GetCamera(string name) Research Gets the first camera by name; currently doesn't work at game start due to null in GraphicsCompositor
GetFirstCamera() Research Gets the first camera in GraphicsCompositor; currently doesn't work at game start due to null

AnimationComponentExtensions.cs

| PlayAnimation() | Done | Plays an animation if not already playing |

ModelComponentExtensions.cs

GetMeshHeight() Done Returns mesh height as float