Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    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 are not a introduction to C# itself. Although having some coding experience is useful, it is not mandatory to get started with these tutorials. You can create the C# beginner tutorial project by starting the Stride launcher. Create a new project and select the template: Tutorials -> C# beginner. Every single scene is loaded as a child scene and demonstrates a sample script.

    Youtube Tutorial Series

    All tutorials have a Youtube video. You can watch the entire C# Beginners playlist here: https://www.youtube.com/playlist?list=PLRZx2y7uC8mNySUMfOQf-TLNVnnHkLfPi

    All tutorials

    Getting the Entity

    Getting the Entity tutorial
    • Retrieve the entity
    • Retrieve the parent
    • Print debug text

    Child entities

    Child entities tutorial
    • Get a specific child entity
    • Get children in a list
    • Get children of children

    The transform

    The transform tutorial
    • Accessing the Transform component
    • Get the local position
    • Get the world position

    Editor properties

    Editor properties tutorial
    • Defining various editor properties
    • Defining lists
    • Hiding public properties

    Getting a component


    Get a component tutorial
    • Getting a component
    • Remove a component
    • Access methods of other components

    Adding a component

    Add a component tutorial
    • Adding a component
    • Removing all components of 1 type
    • Create a component if it doesn't exists

    Delta time

    Delta time tutorial
    • Retrieving delta time
    • Making a simple timer
    • Making a simple countdown timer

    Cloning an entity

    Cloning an entity tutorial
    • Cloning an entity
    • Adding an entity to the current scene
    • Adding an entity as a child to a parent entity

    Removing an entity

    Removing an entity tutorial
    • Cloning new entities using a timer
    • Removing entities using a timer
    • Removing an entity from the scene

    Keyboard input

    Keyboard input tutorial
    • Holding down a key
    • Clicking a key
    • Releasing a key

    Mouse input

    Mouse input tutorial
    • Holding down a mouse button
    • Clicking or releasing a mouse button
    • Using the mouse wheel

    Virtual buttons

    Virtual buttons tutorial
    • Defining a virtual key configuration
    • Binding input to the configuration
    • Using the virtual buttons

    Linear Interpolation

    Linear Interpolation tutorial
    • Calculating 'lerp' value
    • Lerp between vector 3
    • Random values

    Loading content

    Loading content tutorial
    • Loading content from code
    • Unloading content
    • Attach models to entities

    Instantiating prefabs

    Instantiating prefabs tutorial
    • Instantiate prefab
    • Load prefab from content
    • Parent prefab entity
    • Improve this Doc
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation