This tutorial guides you through implementing an experiment on LUIDA using this implementation template, by building a simple experiment step by step.
- Installation, account creation, and learning about CCK
- Create a new experiment on the LUIDA Web Console and fill in the required information
- Initial setup of this implementation template (Unity)
- Configure data collection on in-scene objects
- Test locally (in Unity Editor) & preparation before uploading
- Upload to cluster as a world and verify operation
- Final settings on LUIDA Web Console (World ID registration and avatar settings)
- Wait for publication
Before starting this tutorial, we recommend learning the following basics:
- Unity
- JavaScript
- Cluster Creator Kit (CCK)
- At minimum, review Triggers and Gimmicks
Also, please complete the following preparations before starting the tutorial:
- Create a cluster account
- Install the required version of Unity for cluster
- Log in to the LUIDA Web Console for the first time and submit an approval request. After submitting the request, please contact the administrator (y.hu@cluster.mu).
In this experiment, we will examine the priming effect. Participants first watch a randomly selected video — either "an elderly person walking" or "a young person running." After watching the video, two bridges appear: one that looks safe and one that looks dangerous. The participant walks across one of the bridges. This experiment examines whether the content of the video influences the participant's choice of bridge.
- Experiment procedure
- Start -> Demographics questionnaire -> Watch video (randomly selected) -> Choose a bridge -> End
- Recorded data
- Which video was shown (
isElderVideo: true / false) - Which bridge was crossed (
isSafeRoad: true / false)
- Which video was shown (
- Questionnaire
- Demographics (Age)
- Open the LUIDA Web Console.
- Create a new experiment: Click "+New Experiment" and register the basic experiment information with the following values:
- Title:
Priming Effect Experiment - Participation requirements: (optional)
- Reward:
0 - Image URL: Any string (e.g.,
https://example.com/image.png) - World ID: Leave blank for now
- Room capacity:
1 - Status:
Testing
- Title:
| New Experiment Button | Experiment Registration Form |
|---|---|
![]() |
![]() |
- Navigate to experiment details page: Once the experiment is registered, click on that experiment's row from the home page to access its details page. Verify the information you just registered.
- Create a questionnaire: Scroll down and perform the following operations in the questionnaire registration form:
- Click "Add Questionnaire" button -> Do not select a template, enter the title as
Demographics-> Click "Add" button - Click the "Question List" button for the added questionnaire and add the following question:
- Title:
Age, Question Type:Text Input, Required: Yes
- Title:
- Click "Add Questionnaire" button -> Do not select a template, enter the title as
*Some of these steps will be automated in the future. For now, please complete all steps.
-
Download the latest release of the implementation template.
-
Open the downloaded Unity project from Unity Hub. Errors may appear in the console when opening the project, but ignore them first and import the following required packages into Unity:
- CSCombiner: Tool for combining Cluster Scripts in Unity Editor (ver1.01 recommended)
- CSEmulator: Tool to play Cluster Scripts in Unity Editor (for now, please use V2 instead of V3)
-
Open the sample scene
Assets/_Experiment_/Scenes/Sample/Priming_incomplete.unityand press the Play button in the Unity Editor to get a feel for the scene. -
After reviewing the scene, go to
LUIDA > Scene > Duplicate current scenefrom Unity's menu bar. In the dialog that appears, enter your own name to create a new scene. You will work on this new scene from now on.
-
Next, link your cluster account to this Unity project. The procedure is as follows (see the image for reference):
- From the Unity menu bar, open the
LUIDA > Configure experiment identifierswindow. - Click the
Create Access Tokenbutton to open the cluster access token creation page in your web browser. - Click the
Create Tokenbutton, and then copy and paste the displayed token into theAccess Tokenfield in theConfigure experiment identifierswindow that you just opened in Unity.
- From the Unity menu bar, open the
-
With the identifiers configuring window still open, enter the Experiment ID you copied from the web console earlier into the
Experiment IDfield. -
If the Verify Token is not generated yet, click the
Generate a new verify tokenbutton. -
Close the identifiers configuring window.
In the new scene, you will configure components on in-scene objects so that data can be collected and uploaded to LUIDA's backend.
Select the in-scene game object StartVideoButton and find its Global Trigger Lottery component.
- Click the
+button twice to add two choices. - Configure each choice with the following triggers:
- Choice 1:
Globaltrigger, Key =isElderVideo, Value Type =Bool, Value =true - Choice 2:
Globaltrigger, Key =isElderVideo, Value Type =Bool, Value =false
- Choice 1:
This makes the video selection random when the button is pressed, and records which video was shown as isElderVideo.
Select the in-scene game object SafeRoadCheckPoint and find its On Collide Item Trigger component.
- Click the
+button 3 times to add 3 triggers, and set the values as shown in the figure below. - Additionally, add the following 2 components:
Luida Process Data And Save To Collection GimmickLuida Upload Collected Data Gimmick
After configuration, it should look like the figure below:
Figure legend:
- Red squares: Data collection — when this checkpoint is passed, record
isSafeRoad=true - Yellow squares: Save data trigger and gimmick — when this checkpoint is passed, save data to collection
- Green squares: Upload data trigger and gimmick — when this checkpoint is passed, upload collected data
Select the in-scene game object DangerousRoadCheckPoint and configure it with the same components and triggers as SafeRoadCheckPoint.
The only difference: Set the value of isSafeRoad to false.
Select the in-scene game object LUIDA-DataCollector and double-click the Script Asset in its Inspector component (see figure below). The script editing screen will open.
Replace the contents with the following script and save the file:
return {
video: $.getStateCompat("global", "isElderVideo", "boolean") ? "Elder" : "Young", // Which video was shown
road: $.getStateCompat("global", "isSafeRoad", "boolean") ? "Safe" : "Danger", // Which bridge was crossed
};This script defines the format of the collected data. It retrieves the isElderVideo and isSafeRoad values sent to Global via CCK components using $.getStateCompat.
- Right-click in the Hierarchy window and select
LUIDA > Questionnaire. - In the dialog that appears, enter
1forqIDand press theCreatebutton.
A questionnaire game object will be generated.
- Click the generated questionnaire object and add the following components in the Inspector:
Global LogicSet Game Object Active Gimmick
- Set the values of the added components as shown in the figure below.
This configuration makes the questionnaire automatically hide itself after the participant finishes answering it.
Follow the steps below to configure
Follow the steps below to configure
- Follow the official cluster documentation Steps to upload a world to upload the created scene as a cluster world.
- After uploading, enter the world yourself and experience the entire experiment as a participant to verify operation.
- At this point, normal avatar selection is available, but once you configure avatar settings in the LUIDA web console (described later) and the experiment is officially published, participants will join with the specified avatar (or hidden avatar).
- If bugs are found after uploading, we recommend using the "test upload" feature after fixing in the Unity project to verify in cluster's Test Space. This allows testing without affecting the published world.
- Once fixes are complete and verified in the test space, perform the normal world upload again.
- Along with verifying operation in the cluster world, check the LUIDA web console to confirm that experiment data (questionnaire responses, other configured log data, etc.) is correctly recorded and displayed.

Follow the steps below to configure
- Log in to the cluster official website in your web browser and verify that the uploaded experiment world appears in the list on the "My Content" page (or "World" management screen).
- Select the relevant world and open the world details page. The alphanumeric string at the end of the page URL is the World ID (e.g., the
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXpart ofhttps://cluster.mu/w/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX). Copy this World ID.
- Open the experiment information edit screen on the LUIDA web console and register/save the copied World ID in the designated field (e.g., "World ID").

Follow the steps below to configure
For the experiment in this tutorial, you don't need to configure participant avatars, but if you want to hide avatars or use specific avatars for the experiment, follow these steps:
-
In the LUIDA web console, click the "Add World-Avatar Set" button in the
Avatar Settingssection on the experiment settings page. -
Enter the experiment world ID you registered earlier in the
World IDfield. -
Configure one of the following and click "Submit" to save:
- To hide avatars: Only check
Hide Avatar. Other fields can be left empty. - To specify a particular avatar: Only check
Assign Avatarand enter/upload the following information:Avatar Name: Avatar name (for management)VRM Version: VRM model version to use (e.g.,0.xor1.0)Upload VRM: Avatar VRM fileUpload Thumbnail (PNG): Avatar thumbnail image (PNG format recommended)
- To hide avatars: Only check
Once all the above settings are complete, your experiment is ready to be listed on the LUIDA participant recruitment world. Please allow a few days for publication.
*Note: In the future, we plan to improve LUIDA's experiment information update process so that newly registered experiments can be published more quickly (e.g., within one day).







