C# Code-Only Advanced Examples
This page provides a brief overview of the advanced examples available for code-only projects in Stride. Each linked page contains focused snippets and explanations.
Examples Overview
- Simple Constraint: Demonstrates creating a simple constraint between two entities.
- Various Constraints: Demonstrates distance limit, distance servo, ball socket, and point-on-line servo constraints between entities.
- Myra UI - Draggable Window, GetService(): Demonstrates using Myra UI to create a draggable window, display a health bar, and access registered services.
- Stride UI - Draggable Window: Demonstrates using Stride UI to create a draggable window.
- ImGui UI: Demonstrates using ImGui to create a simple UI.
- Image Processing: Demonstrates applying image-processing effects to a texture.
- Root Renderer Shader: Demonstrates creating a custom shader for the root renderer.
- Box2D.NET Physics: Demonstrates integrating Box2D.NET physics into a Stride project.
- Mesh Outline: Demonstrates creating a mesh-outline effect.
Interactive Console Application
Prefer an interactive approach? Use the console app in the Stride.CommunityToolkit.Examples
project. It provides a menu to select and run examples directly.
Here's a glimpse of the interactive menu:
Stride Community Toolkit Examples
[1] Basic Example - Capsule with rigid body
[2] Basic Example - Capsule with rigid body - Bullet Physics
[3] Basic Example - Capsule with rigid body - F#
[4] Basic Example - Capsule with rigid body - Visual Basic
[5] Basic Example - Mesh Line
[6] Basic Example - Material
[7] Basic Example - Give me a cube
[8] Basic Example - Stride UI - Canvas - Capsule with rigid body and Window
[9] Basic Example - Stride UI Grid - Save and load game state
[10] Basic Example - Procedural Geometry
[11] Basic Example - Cylinder Mesh
[12] Basic Example - Partial Torus Mesh
[13] Basic Example - Partial Torus Mesh in F#
[14] Basic Example - Particles
[15] Basic Example - Raycast
[16] Basic Example - CollisionGroup
[17] Basic Example - CollisionLayer
[18] Advance Example - Simple Constraint
[19] Advance Example - Various Constraints
[20] Advance Example - Myra UI - Draggable Window, GetService()
[21] Advance Example - Stride UI - Draggable Window
[22] Advance Example - Stride UI - Draggable Window - Bullet Physics
[23] Advance Example - ImGui UI
[24] Advance Example - Image Processing
[25] Advance Example - Root Renderer Shader
[26] Advance Example - Box2D.NET Physics
[27] Advance Example - Mesh Outline
[28] Other - Debug Shapes
[29] Other - Debug Shapes Usage
[30] Other - Renderer
[31] Other - Blazor + SignalR - Run this from IIS
[32] Other - Stride + SignalR - Website two way communication
[33] Other - 2D Playground [WIP]
[34] Other - Bepu Playground [WIP]
[35] Other - Game - Cubicle Calamity [WIP]
[36] Other - Game - Cubicle Calamity [WIP] - Bullet Physics
[37] Basic Example - Basic 2D Scene [WIP]
[Q] Quit
Enter example id and press ENTER to run it.
(Debug output may appear; you can ignore it and type another id at any time.)
Choice: