<aside>

⚙️ The XR user and XR features
ℹ️ The essential components of an EDIA experiment
This is an overview of the main methods that can be used when developing your experiment.
For more indepth information on the methods, see the API reference.
#️⃣ XR Interaction
The XRmanager script is a Singleton, so we can access it via XRManager.Instance. EDIA provides the following methods for controlling the XR aspects
The current version May 10, 2025 of the Unity XR Interaction Toolkit supports two different interaction modes; Based on a Ray (near/far distance) and based on a Poke (touch).
EnableAllInteraction(bool onOff) |
Enable both interaction methods |
|---|---|
EnableRayInteraction(true) |
Enable XRITK Ray interaction (near/far) |
EnablePokeInteraction(bool onOff) |
Enable XRITK Poke interaction (touch) |
DisableAllInteractors |
Disable all methods |
#️⃣ XR User
The xrmanager script is a Singleton, so we can access it via XRManager.Instance. EDIA provides the following methods for the particpants representation in XR.
MovePlayarea(Transform newTransform) |
Enable both interaction methods |
|---|---|
ShowHands(bool onOff) |
Enable XRITK Ray interaction (near/far) |
ShowControllers(bool onOff) |
Enable XRITK Poke interaction (touch) |
📺 Fading the VR view
There can be situations where you don’t want to see the participant to see what happens in VR, i.e. setting up stimuli, toggling active states of gameobjects, etc.
Edia provides an easy way to do a cinematic fade to black The xrmanager script is a Singleton, so we can access it via XRManager.Instance.
HideVR() |
Fades to black (default duration = 1s) |
|---|---|
ShowVR() |
Fades from black (default duration = 1s) |
ShowVRInstatntly() |
No fading, instantly back in VR. |
👉🏼 EDIA manual