xr-development
Installation
SKILL.md
XR Development in Godot 4.3+
All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.
Related skills: 3d-essentials for 3D rendering and environment, physics-system for 3D physics interactions, input-handling for non-XR input patterns, export-pipeline for platform exports.
1. XR Setup
Enabling OpenXR
- Project Settings → Plugins → Enable:
OpenXR(orOpenXR Plugindepending on version) - Project Settings → XR → OpenXR → Enabled →
true - Project Settings → XR → Shaders → Enabled →
true(for XR shader support) - Rendering:
- Use Forward+ or Mobile renderer (Compatibility also works for simpler scenes)
- Set Project Settings → Display → Window → VSync Mode to
Disabled(the XR runtime controls frame timing)