Unity SDK Installation¶
The XRXP Unity SDK is maintained in the xrxp-unity repository.
Requirements¶
- Unity
2021.3 LTSor later - access to the
xrxp-unityrepository com.unity.textmeshprofor the core package- a running XRXP backend if you want online sync or live control
Install the core package¶
Option 1: Unity Package Manager from Git URL¶
In Unity:
- open
Window > Package Manager - click
+ - choose
Add package from git URL - use:
Option 2: edit Packages/manifest.json¶
{
"dependencies": {
"com.xrxp.core": "https://github.com/pvaslin/xrxp-unity.git?path=/Packages/com.xrxp.core"
}
}
Option 3: local package for development¶
Install optional modules¶
All modules depend on com.xrxp.core.
Scene Controller¶
FrameRate Monitor¶
Eye Tracking¶
First setup in Unity¶
After importing com.xrxp.core:
- run
XRXP > Setup the scene - select the generated
Assets/XRXPConfig/XRXPConfig.asset - fill in your experiment ID, token, and endpoints
This creates the base XRXP object and config asset used by the SDK.
Recommended install order¶
- install
com.xrxp.core - verify one session can be recorded locally
- configure online endpoints
- add only the modules your experiment needs