|
@@ -1,27 +1,25 @@
|
|
|
# C# Beginner
|
|
# C# Beginner
|
|
|
-These tutorials cover the beginner principles of using C# when working with the Xenko game engine. Start here if you are new to Xenko or progamming. Althoug 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 Xenko 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.
|
|
|
|
|
-
|
|
|
|
|
|
|
+These tutorials cover the beginner principles of using C# when working with the Xenko game engine. Start here if you are new to Xenko or progamming. Althoug 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 Xenko 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
|
|
|
<div class='tutorial'>
|
|
<div class='tutorial'>
|
|
|
[
|
|
[
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Getting the Entity</h2>
|
|
<h2>Getting the Entity</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
|
|
+
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Retrieve the entity</li>
|
|
<li>Retrieve the entity</li>
|
|
|
<li>Retrieve the parent</li>
|
|
<li>Retrieve the parent</li>
|
|
|
<li>Print debug text</li>
|
|
<li>Print debug text</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/getting-the-entity_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](entity.md)
|
|
](entity.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -30,17 +28,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Child entities</h2>
|
|
<h2>Child entities</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Get a specific child entity</li>
|
|
<li>Get a specific child entity</li>
|
|
|
<li>Get children in a list</li>
|
|
<li>Get children in a list</li>
|
|
|
<li>Get children of children</li>
|
|
<li>Get children of children</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/child-entities_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](childentities.md)
|
|
](childentities.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -49,17 +46,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>The transform</h2>
|
|
<h2>The transform</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Accessing the Transform component</li>
|
|
<li>Accessing the Transform component</li>
|
|
|
<li>Get the local postion</li>
|
|
<li>Get the local postion</li>
|
|
|
<li>Get the world position</li>
|
|
<li>Get the world position</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/transform-position_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](transformPosition.md)
|
|
](transformPosition.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -69,55 +65,52 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Editor properties</h2>
|
|
<h2>Editor properties</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Defining various editor properties</li>
|
|
<li>Defining various editor properties</li>
|
|
|
<li>Defining lists</li>
|
|
<li>Defining lists</li>
|
|
|
<li>Hiding public properties</li>
|
|
<li>Hiding public properties</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/editor-properties_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](editorProperties.md)
|
|
](editorProperties.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class='tutorial'>
|
|
<div class='tutorial'>
|
|
|
[
|
|
[
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
- <h2>Get a component</h2>
|
|
|
|
|
|
|
+ <h2>Getting a component</h2>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
</div>
|
|
</div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Getting a component</li>
|
|
<li>Getting a component</li>
|
|
|
<li>Remove a component</li>
|
|
<li>Remove a component</li>
|
|
|
<li>Access methods of other components</li>
|
|
<li>Access methods of other components</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/getting-a-component_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](getComponent.md)
|
|
](getComponent.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class='tutorial'>
|
|
<div class='tutorial'>
|
|
|
[
|
|
[
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
- <h2>Add a component</h2>
|
|
|
|
|
|
|
+ <h2>Adding a component</h2>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
</div>
|
|
</div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Adding a component</li>
|
|
<li>Adding a component</li>
|
|
|
<li>Removing all components of 1 type</li>
|
|
<li>Removing all components of 1 type</li>
|
|
|
<li>Create a component if it doesn't exists</li>
|
|
<li>Create a component if it doesn't exists</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/adding-a-component_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](addComponent.md)
|
|
](addComponent.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -127,17 +120,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Delta time</h2>
|
|
<h2>Delta time</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Retrieving delta time</li>
|
|
<li>Retrieving delta time</li>
|
|
|
<li>Making a simple timer</li>
|
|
<li>Making a simple timer</li>
|
|
|
<li>Making a simple countdown timer</li>
|
|
<li>Making a simple countdown timer</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/deltatime_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](deltaTime.md)
|
|
](deltaTime.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -146,17 +138,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Cloning an entity</h2>
|
|
<h2>Cloning an entity</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Cloning an entity</li>
|
|
<li>Cloning an entity</li>
|
|
|
<li>Adding an entity to the current scene</li>
|
|
<li>Adding an entity to the current scene</li>
|
|
|
<li>Adding an entity as a child to a parent entity</li>
|
|
<li>Adding an entity as a child to a parent entity</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/cloning-entities_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](cloningEntities.md)
|
|
](cloningEntities.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -165,17 +156,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Removing an entity</h2>
|
|
<h2>Removing an entity</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Cloning new entities using a timer</li>
|
|
<li>Cloning new entities using a timer</li>
|
|
|
<li>Removing entities using a timer</li>
|
|
<li>Removing entities using a timer</li>
|
|
|
<li>Removing an entity from the scene</li>
|
|
<li>Removing an entity from the scene</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/removing-entity_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](removeEntity.md)
|
|
](removeEntity.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -185,17 +175,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Keyboard input</h2>
|
|
<h2>Keyboard input</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Holding down a key</li>
|
|
<li>Holding down a key</li>
|
|
|
<li>Clicking a key</li>
|
|
<li>Clicking a key</li>
|
|
|
<li>Releasing a key</li>
|
|
<li>Releasing a key</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/keyboard-input_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](keyboardInput.md)
|
|
](keyboardInput.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -204,17 +193,17 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Mouse input</h2>
|
|
<h2>Mouse input</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Holding down a mousebutton</li>
|
|
<li>Holding down a mousebutton</li>
|
|
|
<li>Clicking or releasing a mousebutton</li>
|
|
<li>Clicking or releasing a mousebutton</li>
|
|
|
|
|
+
|
|
|
<li>Using the mouse wheel </li>
|
|
<li>Using the mouse wheel </li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/mouse-input_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](mouseInput.md)
|
|
](mouseInput.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -223,17 +212,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
<div class='tutorial_title'>
|
|
|
<h2>Virtual buttons</h2>
|
|
<h2>Virtual buttons</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
|
|
+ 
|
|
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Defining a virtual key configuration</li>
|
|
<li>Defining a virtual key configuration</li>
|
|
|
<li>Binding input to the configuration</li>
|
|
<li>Binding input to the configuration</li>
|
|
|
<li>Using the virtual buttons</li>
|
|
<li>Using the virtual buttons</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
|
|
- <img src="media/virtual-buttons_thumb.png">
|
|
|
|
|
- </div>
|
|
|
|
|
](virtualButtons.md)
|
|
](virtualButtons.md)
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|