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

  1. 0. Overview of the Workflow
  2. 1. Preparation
  3. 2. Quick Start: Installer and Wizard
  4. 3. Prepare Unity Package Scope
  5. 4. Install xAPI4Unity Package
  6. 5. Prepare xAPI Registry
  7. 6. Install OmiLAXR Framework
  8. 7. Use the OmiLAXR Prefabs
  9. 8. Install Your Required XR SDK Module
  10. 9. Configure an OmiLAXR Endpoint
  11. 10. Work with xAPI Definitions
  12. 11. Work with OmiLAXR Modules
  13. 12. Use AI Coding Agents (MCP)
  14. 13. Join Our Discord Server
  15. 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.

Figure omilaxr-workflow
Fig. 1: Overview of the OmiLAXR workflow

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.

Figure step-0
Fig. 2: XR Starter Project Screenshot

In this guide, you'll install the following three Unity packages:

  1. xAPI4Unity: Translates JSON definitions into C# code.
  2. OmiLAXR: The base module that provides additional functionality.
  3. 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.

Figure wizard-welcome
Fig. 22: OmiLAXR Wizard: Welcome

Step 3: Prepare Unity Package Scope

You can skip this step if you used the installer above or install the packages via Git URL. Otherwise, follow the instructions below to manage package updates:

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:

  1. (fastest way) Open <project_root>/Packages/manifest.json and add the following entry under scopedRegistries if it isn’t already present:
  2. Edit > Project Settings..., as shown in Fig. 3, and add the scopes by hand.
<project_root>/Packages/manifest.json
{
  "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.

Figure scoped-registry
Fig. 3: Scoped Registry Preview

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).

Figure my-registries-2023
Fig. 4: My Registries in Unity (2023+)

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:

  1. Welcome: an overview of the steps.
  2. 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.
    Change the repository URL and branch only if you work with a fork.
  3. 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.
  4. 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.
  5. 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.

Figure installed-omilaxr
Fig. 6: Installed Packages (xAPI4Unity, OmiLAXR, and OmiLAXR.xAPI)

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.

Figure prefabs
Fig. 8: OmiLAXR Prefab
Figure prefabs-2
Fig. 9: OmiLAXR.xAPI Prefab
Figure prefabs-in-hierarchy
Fig. 10: OmiLAXR Prefabs in Hierarchy

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.

Figure unityxr
Fig. 11: OmiLAXR.UnityXR

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.

Figure unityxr-prefab
Fig. 13: OmiLAXR.UnityXR Prefab

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.

Figure endpoints
Fig. 14: OmiLAXR Default Endpoints
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:

Follow the steps below to set up a local LRS:

Figure credentials.json
Fig. 15: Assets / StreamingAssets / credentials.json
Figure create-credentials.json
Fig. 16: Create credentials.json file

For development purposes, we provide a preconfigured version of LRSQL:

  1. Download the preconfigured SQLRS package.
  2. Unpack the ZIP archive.
  3. 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**.
  4. Open http://localhost:8080/ in your browser and log in using:
    • Username: admin
    • Password: admin
  5. Once logged in, you'll see the LRS dashboard (see Fig. 18).
  6. Use the following preconfigured credentials for development (change them if used in production):
    • API Key: db3e9b32e6c2ceeb06c69a98ad3315c0137999172a4c3e56339bb61c94340872
    • API Secret: 30cfcff6247a86c8023968a30956c8cea6a43e416faeb96c30fb7c9d4a10e46e
    • Endpoint: http://localhost:8080/xapi/
  7. You can now enter these credentials into your credentials.json file. Alternatively, download a pre-filled filehere.
  8. Once configured, you will be able to see generated xAPI statements in the LRS dashboard.
Figure osx-allow-java
Fig. 17: Allow Java in System Preferences (macOS)
Figure yetanalytics
Fig. 18: YetAnalytics LRSQL 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.

Figure definitions-editor
Fig. 19: Edit xAPI Definitions Window

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:

<project_root>/.mcp.json
{
  "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.

Figure discord
Fig. 20: OmiLAXR Discord Server

Step 14: Contribute and Share with the Community

In OmiLAXRv2, we use a modular architecture based on so-called “modules.” The Pipeline consists of individual components, and a module is a collection of such components used to extend or create OmiLAXR pipelines.

This allows you to organize your Learning Analytics (LA) work in a separate repository.

To develop your own LA module, you can either place all components inside a dedicated folder within your project or create a standalone module based on our module template.

If you prefer to place the module inside your existing XR project, simply download the template as a ZIP file from:https://gitlab.com/learntech-rwth/omilaxr-ecosystem/v2/omilaxr.module-template.

  • (a) Fork the following repository:https://gitlab.com/learntech-rwth/omilaxr-ecosystem/v2/omilaxr.module-template, then clone your fork locally.
  • (b) In Unity, go to Window > Package Manager. Click the + button in the top-left corner and selectAdd from disk... (see Fig. 21).
    Figure add-from-disk
    Fig. 21: Add package from disk
  • (c) Navigate to the cloned project folder and select the package.json file.
  • (d) The module will now be imported into your project, and you can begin working with it.
  • (e) Update all placeholder entries labeled YOUR_MODULE_NAMEin files such as README.md, package.json, your .asmdef file, and any script namespaces. This can be done step by step.

If you want to contribute directly to OmiLAXR by extending or modifying existing modules, you can use the same workflow. In this case, we recommend forking the relevant project and submitting your changes via merge requests.

To contribute, first clone one of the repositories from:https://gitlab.com/learntech-rwth/omilaxr-ecosystem/v2