How to setup XR Recorder

The recorder can be used if and only if it is included as an extra module inside of the project settings. This is already done for the vaccine sample.

../../../_images/setup-013.png

Custom Project

  1. Open the MAGES Panel and navigate to the Advanced Settings

  2. In the Extra Modules section, click on the plus button and find the “MAGES Recorder (Default)” module. Make sure to click on the eye icon to show all of available options:

../../../_images/setup-022.png
  1. This module includes some default settings for the recorder which are generally good for most projects.

Recording

  • If you are using our provided “Operation Start” prefabs then the only thing left is to check the record field before the operation is started.

../../../_images/setup-033.png
  • Otherwise, the code that is required to arm the recorder is provided below:

Hub.Instance.Get<RecorderModdule>().Armed = true;

Note

Currently, recording is automatically stopped when the user quits the application

Your recording will be saved in a .xrec file in the following directory:

  • Desktop: C:Users/USERNAME/AppData/LocalLow/ORamaVR/MAGES_NXT

  • Android (Standalone XR headsets): storage/emulated/USERID/Android/data/PACKAGENAME/files

Playback

  • If you are using our provided “Operation Start” prefab, you can see any recording by clicking on the playback button in the application’s main menu.

../../../_images/setup-04.png
  • Otherwise, the code that is required to enter playback mode is provided below:

Hub.Instance.Get<RecorderModule>().PlayRecording("path/to/your/recording.xrec");
  • Then, select the recording you want and click “Replay”:

../../../_images/setup-05.png

Playback should commence immediately:

../../../_images/setup-06.gif