index.md 6.0 KB

C# Basics

These tutorials cover the absolute basics 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.

[

Getting the Entity

What do you learn?
  • Retrieve the entity
  • Retrieve the parent
  • Print debug text
](entity.md)
[

Child entities

What do you learn?
  • Get a specific child entity
  • Get children in a list
  • Get children of children
](childentities.md)
[

The transform

What do you learn?
  • Accessing the Transform component
  • Get the local postion
  • Get the world position
](transformPosition.md)
[

Editor properties

What do you learn?
  • Defining various editor properties
  • Defining lists
  • Hiding public properties
](editorProperties.md)
[

Get a component

What do you learn?
  • Getting a component
  • Remove a component
  • Access methods of other components
](getComponent.md)
[

Add a component

What do you learn?
  • Adding a component
  • Removing all components of 1 type
  • Create a component if it doesn't exists
](addComponent.md)
[

Delta time

What do you learn?
  • Retrieving delta time
  • Making a simple timer
  • Making a simple countdown timer
](deltaTime.md)
[

Cloning an entity

What do you learn?
  • Cloning an entity
  • Adding an entity to the current scene
  • Adding an entity as a child to a parent entity
](cloningEntities.md)
[

Removing an entity

What do you learn?
  • Cloning new entities using a timer
  • Removing entities using a timer
  • Removing an entity from the scene
](removeEntities.md)
[

Keyboard input

What do you learn?
  • Holding down a key
  • Clicking a key
  • Releasing a key
](keyboardInput.md)
[

Mouse input

What do you learn?
  • Holding down a mousebutton
  • Clicking or releasing a mousebutton
  • Using the mouse wheel
](mouseInput.md)
[

Virtual buttons

What do you learn?
  • Defining a virtual key configuration
  • Binding input to the configuration
  • Using the virtual buttons
](virtualButtons.md)