Exporting rooms from headset for testing Meta XR Simulator
Updated: Sep 25, 2024
Scene Data Recorder enables the user to record their own scene data from the Room Capture setup on their headset. Once recorded, the user can update the default scene in the Meta XR Simulator and use their room in the simulation to aid development.
You will need to have a space setup already available in your headset. Once you download the latest OS, go to Settings > Physical Space > Space Setup > Set Up and follow the instructions to set up your space.
Set up the scene data recorder
- Install and setup the Meta XR Simulator with your development environment. For more info, see Getting Started with Meta XR Simulator.
- Install the SceneDataRecorder APK in the Meta XR Simulator package by going to
\\MetaXRSimulator\data_recorders
. - Install the same APK in your headset.
- Grant storage permissions to record Scene data in your headset. Go to Settings > Apps and find the SceneDataRecorder Sample. Set Storage and Spatial data to enabled.

- Run the application to initate and complete space setup. Once you select Finish, the room will be recorded into a JSON file,
scene_anchors_empty_room.json
in the headset. 
- Move this file from the headset to the Meta XR Simulator project folder. To do this, run the following command in powershell.
adb pull /sdcard/scene_anchors_empty_room.json
Meta XR Simulator package folder\config\anchors
- To use Scene JSON in the Meta XR Simulator go to Mixed Reality.

- Click the … button and select the new scene JSON file.
- Click the Load button.
- Click the Exit Simulator button. The scene will now stop and the simulator window will correctly disappear.
- Play the game again. When the simulator window appears, you will see your new scene now appearing in the simulator.

When SES is running, you will see both the SES environment, and the data from the scene JSON file at the same time. To see only the data from your scene JSON, do the following:
- Exit the simulator.
- Stop the SES server, then press play.
You will now see the scene JSON data independently of the SES environment.
Stop scene JSON
To stop scene JSON, you will need to go to %user%\AppData\Roaming\MetaXR\MetaXrSimulator\persistent_data.json
to remove scene_anchor_data
from the JSON.
Understand the JSON room file