Stride
Introduction
Gum can be used in Stride projects by importing Gum's Gum.Stride NuGet package. Gum.Stride renders through SkiaSharp and adds Forms input through Stride.Input; Stride still owns the window and the render pipeline.
Creating a New Project
Before using Gum, you should first verify that you can create a normal windowed Stride project. For the full API reference, see the Stride documentation: https://doc.stride3d.net/
Stride games can be created two ways: with the Stride Game Studio editor, or as a plain console project using the Stride Community Toolkit (https://stride3d.github.io/stride-community-toolkit/). The steps below use the Community Toolkit, matching the Gum Stride sample.
First, create an empty console project
Open Visual Studio
Select File -> New Project, or select the Create a new project option in the popup window.
Select the option to create a Console App
Enter a name, select a location, then click Next
Select .NET 10.0 as the Framework, then click Create
Next, add the needed NuGet package:
Expand your game project in the Solution Explorer
Right-click on Dependencies and select Manage NuGet Packages
Check Include prerelease, since the Community Toolkit publishes preview versions
Search for and install
Stride.CommunityToolkit.Windows
Stride's packages ship net10.0 builds only, so your project must target net10.0.
Once you have your project set up, it might look similar to the following code block, which opens a window showing a lit 3D scene:
The camera is required. Stride renders the scene through it, so the window stays empty without one. Add3DCamera matches the 3D scene above, and Add2DCamera is the equivalent for a 2D game.
Next, you can begin adding Gum to your project. For more information see the Adding/Initializing Gum page.
Last updated
Was this helpful?

