|
|
@@ -0,0 +1,289 @@
|
|
|
+# 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.
|
|
|
+
|
|
|
+All tutorials have a Youtube video. You can watch the entire Beginners playlist here: https://www.youtube.com/playlist?list=PLRZx2y7uC8mNySUMfOQf-TLNVnnHkLfPi
|
|
|
+
|
|
|
+<iframe width="560" height="315" src="https://www.youtube.com/embed/Z2kUQhSmdr0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
+
|
|
|
+
|
|
|
+## Youtube Tutorial Series
|
|
|
+There is a YouTube series covering this CSharpBeginner course. It is a great companion and may be found here: https://www.youtube.com/watch?v=Z2kUQhSmdr0&list=PLRZx2y7uC8mNySUMfOQf-TLNVnnHkLfPi
|
|
|
+
|
|
|
+# All tutorials
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Getting the Entity</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+
|
|
|
+ <ul>
|
|
|
+ <li>Retrieve the entity</li>
|
|
|
+ <li>Retrieve the parent</li>
|
|
|
+ <li>Print debug text</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](entity.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Child entities</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Get a specific child entity</li>
|
|
|
+ <li>Get children in a list</li>
|
|
|
+ <li>Get children of children</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](child-entities.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>The transform</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Accessing the Transform component</li>
|
|
|
+ <li>Get the local position</li>
|
|
|
+ <li>Get the world position</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](transform-position.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Editor properties</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Defining various editor properties</li>
|
|
|
+ <li>Defining lists</li>
|
|
|
+ <li>Hiding public properties</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](editor-properties.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Getting a component</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Getting a component</li>
|
|
|
+ <li>Remove a component</li>
|
|
|
+ <li>Access methods of other components</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](get-component.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Adding a component</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Adding a component</li>
|
|
|
+ <li>Removing all components of 1 type</li>
|
|
|
+ <li>Create a component if it doesn't exists</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](add-component.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Delta time</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Retrieving delta time</li>
|
|
|
+ <li>Making a simple timer</li>
|
|
|
+ <li>Making a simple countdown timer</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](delta-time.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Cloning an entity</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Cloning an entity</li>
|
|
|
+ <li>Adding an entity to the current scene</li>
|
|
|
+ <li>Adding an entity as a child to a parent entity</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](cloning-entities.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Removing an entity</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Cloning new entities using a timer</li>
|
|
|
+ <li>Removing entities using a timer</li>
|
|
|
+ <li>Removing an entity from the scene</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](removing-entities.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Keyboard input</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Holding down a key</li>
|
|
|
+ <li>Clicking a key</li>
|
|
|
+ <li>Releasing a key</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](keyboard-input.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Mouse input</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Holding down a mouse button</li>
|
|
|
+ <li>Clicking or releasing a mouse button</li>
|
|
|
+
|
|
|
+ <li>Using the mouse wheel </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](mouse-input.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Virtual buttons</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Defining a virtual key configuration</li>
|
|
|
+ <li>Binding input to the configuration</li>
|
|
|
+ <li>Using the virtual buttons</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](virtual-buttons.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Linear Interpolation</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Calculating 'lerp' value</li>
|
|
|
+ <li>Lerp between vector 3</li>
|
|
|
+ <li>Random values</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](linear-interpolation.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Loading content</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Loading content from code</li>
|
|
|
+ <li>Unloading content</li>
|
|
|
+ <li>Attach models to entities</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](loading-content.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class='tutorial'>
|
|
|
+ [
|
|
|
+ <div class='tutorial_title'>
|
|
|
+ <h2>Instantiating prefabs</h2>
|
|
|
+ </div>
|
|
|
+ <div class='stride-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
+ <div class='tutorial_description'>
|
|
|
+ <ul>
|
|
|
+ <li>Instantiate prefab</li>
|
|
|
+ <li>Load prefab from content</li>
|
|
|
+ <li>Parent prefab entity</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ ](instantiating-prefabs.md)
|
|
|
+</div>
|
|
|
+
|
|
|
+
|