ℹ️ Constructing your first Xblock, a building block of EDIA
An experiment is defined as a sequence of blocks playing after each other, in EDIA called Xblocks
task-attention)task-attention-internal vs task-attention-extarnal )Let’s write our first EDIA task block script.
To create a new boilerplate task script:
→ Assets/Create/EDIA/XBlockTemplateScript
This adds a new script called NewXBlockTemplate.cs in your Assets folder. It’s good etiquette to move it into your Scripts folder.
Rename it to TaskStartersKit (→ Naming conventions )
Move the script to the proper folder: Assets/Samples/EDIACore/x.x.x/StartersKit/Getting Started/
Doubleclick on the script, it opens in your code editor.
⚠️ A scripts name and its containing MonoBehaviour class name have to be the same.
→ Rename the class (from XBlockTemplate ) to TaskStartersKit
Take a look at the script, it represents a very rudemantary flow of an experiment task.
As an example task, we want to show a cube to the participant in a certain color. The participant then has to select the color the cube was shown in from a few options shown.
It is good practice to get the task clear before setting up the script, in this case the steps of this task would be: