Don’t find this information after hour of search so try my luck here …
I known that my occulus quest need to be plug BEFORE launching ue editor for having preview, same for my packaging game …
But if you launch the game before starting the vr headset, is it only possible to detect it ?
I try many thing respawn user, restart level, enable hmd, … if you don’t start the oculus before your exe, nothing is detected
Unreal only tries to find a working VR runtime when it starts up. If you are using OpenXR, it seems like everything depends on if the runtime can handle initializing an instance without the headset present. At least testing with SteamVR, initializing the instance fails if I don’t have the headset connected.
So unless the VR runtimes add support for initializing OpenXR without a headset (not even sure if it’s allowed by the spec), the only way to detect the headset would be to modify the engine.