Toggle VR in editor on Run Project

Godot Version

Godot 4.3

Question

I have a test scene where I would like to test things without having to have my VR headset connected every time. In Unity I had a script that detected if my VR headset was connected in the editor. If I wanted to test a scene, this script would activate the XR Origin if the headset was plugged in (and the corresponding camera was called Main Camera). If not, it activated my 3dCharacterController (and its camera) and allowed me to move through my level with WASD.

Is something similar also possible in Godot and is there an example of it? I found some in this topic, but that deals with switching during gameplay and I don’t know if that applies to my question.

maybe?

https://godotengine.org/asset-library/asset/1775

Thanks for your response! I just tested it a bit and at least I can look around with the mouse. WASD doesn’t seem to work yet, but maybe I need to dive into it a bit more.
Based on your link, I started looking further and also came across this video on Meta XR Simulator. I’m going to try that one out as well.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.