Skip to reading
VR Headset Setup & Testing

Export the VR source from PCA

Edition 0.86.3.4

Prepare scenes and input for VR, export to a suitable Godot/OpenXR setup, and follow headset-specific packaging and testing routes for Quest, Valve Index and Galaxy XR.

Download PDFView illustrations

BUILD / PCA TO GODOT

Build Game target list in PCA. Choose “Editable Godot VR source (OpenXR controls)” near the bottom.

01. Save the game and run project validation. Resolve missing player, scene and asset references that affect startup. Open Build Game, select Editable Godot VR source (OpenXR controls), then click Choose Folder and Build Game. Pick a new parent folder.

02. Open the reported output folder. In Godot Project Manager choose Import, open project.godot and let the first import finish. Use the same Godot version as the PCA build when possible. The separate Export Editable Godot Project shortcut selects the standard variant in 0.86.3.4.

03. In the exported project, check the settings below. In Project Export, you should see Windows Desktop, Linux/X11, Web, macOS, Android and iOS. Duplicate or configure the appropriate preset for each headset. The Android preset starts with ARM64 selected and still needs XR configuration.

Code example
project.godot        [application] config/pca3d_vr_build=true
Code example
                     [xr] openxr/enabled=true
Code example
                     [xr] shaders/enabled=true
Code example
game/project.pca3d   settings > vr > enabled = true

Keep one maintained VR folder under version control or in a backup. New PCA exports create another copy. Bring your Godot action map, input fixes, vendor plugins and device presets forward deliberately. A fresh export can look correct and still be missing yesterday’s controller fix.

Page 7 of 19Permalink
Go to page