Table of Contents

C# Code Only Basic Examples

This page provides a brief overview of the basic examples available for code-only projects in Stride. You can explore each example in detail. Each linked example page contains detailed code snippets and explanations.

Examples Overview

  • Capsule with rigid body:
    • Demonstrates how to create a 3D capsule entity and position it in a scene.
  • Give me a cube:
    • A variation of the above example, positioning a 3D cube in a scene.
  • Stride UI - Capsule with rigid body and Window:
    • Demonstrates how to create a 3D capsule entity and position it in a scene, and how to create a simple window displaying a text message.
  • Procedural geometry:
    • Demonstrates how to create procedural geometry meshes such as a triangle, plane, and circle, and how to add them to a scene.

Interactive Console Application

For those who prefer a more interactive approach, we provide a console application that allows you to run these examples directly. This console app, available in the Stride.CommunityToolkit.Examples project, offers an interactive menu for selecting and running the examples.

Here's a glimpse of the interactive menu provided by the console application:

Stride Community Toolkit Examples

[1] Basic Example - Capsule with rigid body
[2] Basic Example - Capsule with rigid body in F#
[3] Basic Example - Capsule with rigid body in Visual Basic
[4] Basic Example - Give me a cube
[5] Basic Example - Stride UI - Canvas - Capsule with rigid body and Window
[6] Basic Example - Stride UI - Grid - Save and load game state
[7] Basic Example - Procedural Geometry
[8] Advance Example - Myra UI - Draggable Window, GetService()
[9] Advance Example - Image Processing
[Q] Quit

Enter choice and press ENTER to continue