Get Started
Already installed OmiLAXRv2? Continue with the Pipeline instructions.
This site provides educators, students, and developers with technical guides, best practices, case studies, and real-world examples. Whether you're new to XR or an experienced developer, you'll find valuable resources to help you integrate XR into educational settings.
We hope you find our materials useful. Thank you for exploring XR in education with us.
Table of Contents
- 0. Overview of the Workflow
- 1. Preparation
- 2. Quick Start: Installer and Wizard
- 3. Prepare Unity Package Scope
- 4. Install xAPI4Unity Package
- 5. Prepare xAPI Registry
- 6. Install OmiLAXR Framework
- 7. Use the OmiLAXR Prefabs
- 8. Install Your Required XR SDK Module
- 9. Configure an OmiLAXR Endpoint
- 10. Work with xAPI Definitions
- 11. Work with OmiLAXR Modules
- 12. Use AI Coding Agents (MCP)
- 13. Join Our Discord Server
- 14. Contribute and Share with the Community
Step 0: Overview of the Workflow
This guide sets up OmiLAXR step by step. The documentation describes all components, modules and their changelogs in detail.
To streamline development with IDE support and ensure consistency, we provide a tool that converts the xAPI registry into C# code. Start by importing this tool. Refer to Fig. 1 for an overview.

We maintain xAPI definitions through a structured registry, organized as <context>/<defType>/<defName>.json to enable modular and reusable definitions. Our tool translates these definitions into static C# classes, helping to avoid typos and inconsistencies.
These definitions can be integrated into your XR application to create custom xAPI statements, which are then sent to a Learning Record Store (LRS). Developers can also learn from tracked scenarios and update the registry with new definitions for broader community use.
Step 1: Preparation
Make sure you have a Unity project set up where you plan to integrate this framework. OmiLAXRv2 is compatible with all Unity projects — both XR and non-XR.

In this guide, you'll install the following three Unity packages:
- xAPI4Unity: Translates JSON definitions into C# code.
- OmiLAXR: The base module that provides additional functionality.
- OmiLAXR.xAPI: Adds xAPI handling tools and components.
Step 2: Quick Start: Installer and Wizard
The quickest way to set up OmiLAXR takes two steps. The sections after this one describe the same steps by hand, if you prefer that.
1. Run the installer
Download the OmiLAXR installer and drag it into the Unity editor. Unity shows the two files it imports (an editor script and its assembly definition). After you confirm, the installer adds the scoped registry and the OmiLAXR package to your Packages/manifest.json, keeps a backup as manifest.json.bak and then removes itself. Running it again changes nothing if OmiLAXR is already set up.
2. Follow the OmiLAXR Wizard
From OmiLAXR 2.3.0 on, the OmiLAXR Wizard opens once the package is installed (see Fig. 22). You can open it again at any time via OmiLAXR > Open Wizard. It opens on its own only the first time; tick Show on startup at the bottom left if it should open every time you start Unity. Use Next and Back to go through the six steps, or click a step at the top. The tabs below show each step.
Each package card shows its state on the right:
- not installed: Install adds the package through the Unity Package Manager.
- installed 1.2.3: installed from the registry. Remove takes it out of the project again.
- 1.2.3 → 1.3.0: a newer version is available. Update installs it.
- local 1.2.3 (or git 1.2.3): the package comes from disk or a Git URL. The wizard leaves it as it is.
Packages can only be installed once the scoped registry is added (first check of Required).
The first page explains what the wizard sets up. Only the Required step is needed for tracking; you can skip all other steps and come back later. The header shows the installed OmiLAXR core version and your Unity version.

The Status list checks your project and the open scene. A check that fails shows a hint and a button that fixes it:
- Scoped registry for OmiLAXR packages: Add registry adds it to Packages/manifest.json.
- Pipeline in the open scene: Add prefab adds the OmiLAXR prefab with a learner pipeline, actor and instructor.
- Data provider in the open scene: install a data provider module such as OmiLAXR.xAPI under Data format and add its prefab.
- Credentials file in StreamingAssets (optional): web endpoints read their login from credentials.json (basic auth) or bearer.json (bearer token). Local file endpoints need none.
Once OmiLAXR.xAPI is installed, three more checks appear: the xAPI data provider in the open scene, the folder Assets/xAPI.Registry (Copy sample copies the bundled one) and the scripting define XAPI_REGISTRY_EXISTS, which is set automatically once the folder exists. Without it, the xAPI composers compile out.
Below the list are buttons to add the prefabs, create the credentials files and copy the xAPI samples by hand.

Optional modules that track more:
- XR input: OmiLAXR.UnityXR (XR Interaction Toolkit), OmiLAXR.MetaXR (Meta XR SDK, including eye calibration and face data) and OmiLAXR.MRTK2. Install the one that matches the XR SDK of your project.
- Heart rate and PPM: OmiLAXR.HypeRate reads the heart rate from the HypeRate app. With OmiLAXR.xAPI, Add PPM hook adds the PPM hook to the xAPI data provider, which puts the current heart rate into every statement.
- Privacy: OmiLAXR.Pseudonymization creates unique pseudonyms for learners to use instead of their real names.

OmiLAXR.ReCoPa connects your project to the Researcher Companion Panel, a desktop app in which you watch the statements live, pause tracking and calibrate. Get the ReCoPa app leads to the download.
xAPI4Unity turns xAPI JSON definitions into the C# xAPI.Registry the xAPI composers use (see Install xAPI4Unity Package).
More packages lists all other packages in the OmiLAXR registry, such as OmiLAXR.Benchmark.

This step connects AI coding agents to OmiLAXR (see Use AI Coding Agents (MCP)).
- Under Agents, tick the agents you use: Claude Code, Cursor or VS Code (GitHub Copilot).
- Under Start the server with, choose dnx OmiLAXR.MCP (runs the server from NuGet without installing it; needs the .NET 10 SDK) or omilaxr-mcp (after dotnet tool install -g OmiLAXR.MCP).
- Optionally enter an Author as Name <email> for the license headers and package.json of generated files. If it is empty, the server takes it from your Git config.
- Click Write MCP configuration.
The agent may then write generated files into your project, but it never overwrites existing files.

The last page sums up how many required steps are done, which modules are installed and whether MCP is configured. If something still needs attention, go back to that step. Otherwise press Play in Unity to start tracking. Learn more links to the documentation, this guide, the xAPI Registry and the changelog.

Step 3: Prepare Unity Package Scope
By default, Unity only recognizes packages hosted by Unity. To support third-party packages like OmiLAXR, you’ll need to update your manifest.json file to include the required scopes.
To do this by hand, you have two options:
- (fastest way) Open <project_root>/Packages/manifest.json and add the following entry under scopedRegistries if it isn’t already present:
- Edit > Project Settings..., as shown in Fig. 3, and add the scopes by hand.
{
"dependencies": {
"...": "..."
},
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.com",
"scopes": [
"com.rwth.unity.omilaxr"
]
}
]
}Since Unity 2020.1 it is not needed anymore to have all packages inside the scoped registry. Having com.rwth.unity.omilaxr is enough to find all com.rwth.unity.omilaxr.* packages.
After updating, restart Unity and verify the scopes under Edit > Project Settings..., as shown in Fig. 3.

Step 4: Install xAPI4Unity Package
In Unity, navigate to Window > Package Manager → My Registries to locate and install the package (see Fig. 4 or Fig. 5).


Alternatively, use the + button in the Package Manager and add the package by entering com.rwth.unity.omilaxr.xapi4unity.
Step 5: Prepare xAPI Registry
For data tracking, we use the xAPI (Experience API) data format. To better understand xAPI, please refer to the official documentation: https://xapi.com/statements-101/.
To support standardization, we maintain a dedicated xAPI registry tailored to various research domains. One such domain is virtualReality (support for extendedReality is in progress). The definitions are in our GitHub repository https://github.com/OmiLAXR-Ecosystem/xapi. To browse them, use the xAPI Registry website at https://omilaxr-ecosystem.github.io/xapi/.
Tip: if you only want to try OmiLAXR.xAPI, you can skip this step. In the step Required of the OmiLAXR Wizard, Copy sample copies a prebuilt xAPI.Registry into your project.
From xAPI4Unity 2.3.0 on, the xAPI4Unity Wizard sets up the definitions and the generated C# registry. Open it via xAPI4Unity > Open Wizard. It also opens when Unity starts and the definitions or the registry are missing. It has five steps:
- Welcome: an overview of the steps.
- Source: where the JSON definitions come from. The Local path (default Assets/xapi) must contain a definitions folder. There are three ways to get the definitions:
- Patch into Assets (recommended): Download and patch downloads the repository and merges it into Assets/xapi. New files are added and identical files are skipped. Files that differ from yours are kept next to them, so you can review them later under Use. The definitions are then part of your project repository.
- Download zip: downloads the archive with your browser. Extract it and set the local path to the extracted folder.
- Git clone (Git submodule if your project uses Git): clones the repository next to the local path and checks out a new local branch. Use this if you want to contribute definitions to the shared registry. Pull latest changes updates the clone later. Needs Git.
- Generate: Update xAPI.Registry (JSON => C#) generates the C# classes into Assets/xAPI.Registry. Generated files are overwritten every time, so do not edit them by hand. Keep Regenerate on changes on, so that the registry is regenerated whenever a definition changes. The optional types config next to the local path (Assets/xapi.config.json, Create writes a default one) sets the types of extension values and lists contexts to skip.
- Use (optional): the definitions editor, the merge conflict resolver for Patch into Assets, the export of the definitions and the registry as .unitypackage, and the xAPI Registry website.
- Done: a summary of the setup.
Step 6: Install OmiLAXR Framework
Tip: the step Required of the OmiLAXR Wizard installs OmiLAXR.xAPI with one click.
Use the My Registries section again to install the OmiLAXR.xAPI package (see Fig. 4 or Fig. 5). Since OmiLAXR.xAPI depends on OmiLAXR, both packages will be installed automatically.

Alternatively, open Window > Package Manager and install the packagecom.rwth.unity.omilaxr.xapi(see Fig. 6).
Step 7: Use the OmiLAXR Prefabs
Tip: the step Required of the OmiLAXR Wizard adds both prefabs to the open scene.
The modular architecture of OmiLAXR makes it possible to implement necessary modules for all XR frameworks. Depending on your needs, the frameworks may differ in terms of interaction behavior, teleportation logic, or the hierarchy of player game objects.
Working with OmiLAXR means implementing components of the pipeline to extend its functionality. This can be done either in your own Unity package (see section below) or by placing the classes inside a folder within the Assets directory.
OmiLAXR modules follow a strict structure. They provide prefabs that you can use to get started immediately (see Fig. 8, Fig. 9, and Fig. 10).
Example scripts can be found here.Note: These examples are currently a bit outdated and will be updated soon.



Step 8: Install Your Required XR SDK Module
Tip: the step Tracking of the OmiLAXR Wizard lists the XR modules and installs them with one click.
To support XR interactions, you need to install an appropriate OmiLAXR module that integrates with the specific XR SDK components used in your project.
We are actively developing several XR modules. Please check the available ones that have already been published.
If you don't see them in your Unity registry, please visit this page for more information.


After installing the XR module of your choice, you can start quickly by using the provided prefabs from the XR module (e.g. OmiLAXR.UnityXR).
Attention: If you already included the prefab of OmiLAXR, you may not need it anymore if you use the new Prefab Variant.
See an example in Fig. 13.

Step 9: Configure an OmiLAXR Endpoint
To create and send statements, you must set up an endpoint. OmiLAXR supports multiple endpoints for delivering data. One of the default endpoints is StatementPrinter, which logs statements to the Unity console. Another common endpoint is a Learning Record Store (LRS).
In Fig. 14, the LRS components are disabled, and only the PrintStatement component is enabled. If you wish to use the LRS, make sure to keep its component enabled.

Do you want to store your data persistent?
To connect to your Learning Record Store, provide the credentials by editing the file atAssets/StreamingAssets/credentials.json (see Fig. 15). If this file doesn't exist, you can create one via OmiLAXR > Create credentials.json(see Fig. 16).
We support several LRS solutions. Recommended options:
- Learning Locker — suitable for production use
- YetAnalytics LRSQL — ideal for development environments
Follow the steps below to set up a local LRS:


For development purposes, we provide a preconfigured version of LRSQL:
- Download the preconfigured SQLRS package.
- Unpack the ZIP archive.
- Launch LRSQL:
- Windows: Run lrsql.exe
- macOS: In Terminal, execute./bin/run_sqlite.sh. You may need to make the file executable using chmod and allow it to run via **System Preferences → Privacy & Security**.
- Open http://localhost:8080/ in your browser and log in using:
- Username: admin
- Password: admin
- Once logged in, you'll see the LRS dashboard (see Fig. 18).
- Use the following preconfigured credentials for development (change them if used in production):
- API Key: db3e9b32e6c2ceeb06c69a98ad3315c0137999172a4c3e56339bb61c94340872
- API Secret: 30cfcff6247a86c8023968a30956c8cea6a43e416faeb96c30fb7c9d4a10e46e
- Endpoint: http://localhost:8080/xapi/
- You can now enter these credentials into your credentials.json file. Alternatively, download a pre-filled filehere.
- Once configured, you will be able to see generated xAPI statements in the LRS dashboard.


Step 10: Work with xAPI Definitions
To manage xAPI definitions, you can either edit the JSON files directly using your IDE in Assets/xapi, or you can use the xAPI4Unity package.
This package provides a dedicated tool window to manage xAPI definitions (see Fig. 19). You can access it via xAPI4Unity > Edit xAPI Definitions.
From this window, you can easily create, edit, rename, or delete xAPI definitions.

Step 11: Work with OmiLAXR Modules
You can now begin developing your own OmiLAXR modules.
>>> To learn more about the modular architecture and see example code, click here. <<<
Step 12: Use AI Coding Agents (MCP)
The OmiLAXR MCP server gives AI coding agents such as Claude Code, Cursor or GitHub Copilot in VS Code knowledge about OmiLAXR. With it, an agent can search and propose xAPI definitions, follow the recipes for listeners, tracking behaviours, composers and endpoints, and generate components that match the package conventions. It needs the .NET 10 SDK.
The step AI (MCP) of the OmiLAXR Wizard writes the server into the configuration files of the agents you select:.mcp.json (Claude Code), .cursor/mcp.json (Cursor) and .vscode/mcp.json (VS Code). Other servers in these files are kept. Restart the agent or reload its MCP servers afterwards.
To do it by hand, add this entry to .mcp.json in your Unity project root:
{
"mcpServers": {
"omilaxr": {
"command": "dnx",
"args": [
"OmiLAXR.MCP",
"--yes"
],
"env": {
"OMILAXR_WORKSPACE": ".",
"OMILAXR_UNITY_PROJECT": ".",
"OMILAXR_WRITE_ROOTS": ".",
"OMILAXR_AUTHOR": "Jane Doe <jane@example.org>"
}
}
}
}All options are described in the OmiLAXR.MCP repository.
Step 13: Join Our Discord Server
Stay connected through our official Discord server, where we share update notes and collaborate as a community of OmiLAXR users and developers.
Join the conversation and grow with the community! Click here to join.

