π± C# Beginner
These tutorials cover the beginner principles of using C# when working with the Stride game engine. Start here if you are new to Stride.
Note: These tutorials do not serve as an introduction to C# itself. While having some coding experience is helpful, it is not mandatory to get started with these tutorials.
To create the C# beginner tutorial project:
- Start the Stride launcher
- Create a new project
- Select the template: Tutorials -> C# beginner
Each scene is loaded as a child scene and demonstrates a sample script.
Stride C# beginner YouTube tutorial series
All tutorials are accompanied by a YouTube video. You can watch the entire C# Beginners playlist here.
All tutorials
Introduction
Learn about the C# beginners project template, how entities and components work, different types of scripts, and more.
πΊ Watch the Introduction tutorial
Getting the Entity
Learn how to retrieve the entity, retrieve the parent entity, print debug text, and more.
πΊ Watch the Getting the Entity tutorial
Child entities
Learn how to get a specific child entity, retrieve children in a list, and access children of children.
πΊ Watch the Child entities tutorial
The transform
Learn how to access the Transform component, get the local position, and get the world position.
πΊ Watch the transform tutorial
Editor properties
Discover how to define various editor properties, create lists, and hide public properties.
πΊ Watch the Editor properties tutorial
Getting a component
Understand how to get a component, remove a component, and access methods of other components.
πΊ Watch the Getting a component tutorial
Adding a component
Explore adding a component, removing all components of one type, and creating a component if it doesn't exist.
πΊ Watch the Adding a component tutorial
Delta time
Learn how to retrieve delta time, create a simple timer, and make a simple countdown timer.
πΊ Watch the Delta time tutorial
Cloning an entity
Learn how to clone an entity, add an entity to the current scene, and add an entity as a child to a parent entity.
πΊ Watch the Cloning an entity tutorial
Removing an entity
Explore cloning new entities using a timer, removing entities using a timer, and removing an entity from the scene.
πΊ Watch the Removing an entity tutorial
Mouse input
Understand how to manage holding down a mouse button, clicking or releasing a mouse button, and using the mouse wheel.
πΊ Watch the Mouse input tutorial
πΊ Watch the Keyboard input tutorial
Virtual buttons
Learn how to define a virtual key configuration, bind input to the configuration, and use the virtual buttons.
πΊ Watch the Virtual buttons tutorial
Linear Interpolation
Explore calculating 'lerp' values, lerping between `Vector3` values, and using random values.
πΊ Watch the Linear Interpolation tutorial
Loading content
Discover how to load content from code, unload content, and attach models to entities.
πΊ Watch the Loading content tutorial
Instantiating prefabs
Learn how to instantiate a prefab, load a prefab from content, and parent a prefab entity.
πΊ Watch the Instantiating prefabs tutorial