Have a project set to the UWP platform with the xr.sdk.openxr package installed.
Set OpenXR as the active loader and set "Initialize XR on startup" to false.
Test:
Developer should be able to start subsystems and initialize uwp app into vr mode during runtime.
Result:
Errors appear in console and app does't change.
See attached InitDuringRuntime.txt
Expected:
No errors appear and app enables vr
User mentions potentially doing this here:
https://forum.unity.com/threads/openxr-plugin-tries-to-start-vr-even-if-initialize-on-startup-is-set-to-false-uwp.1408345/
Basic code to start/stop subsystems:
public static void StartSubsystems()
{
var manager = XRGeneralSettings.Instance.Manager;
manager.InitializeLoaderSync();
manager.StartSubsystems();
}
public static void StopSubsystems()~
{
var manager = XRGeneralSettings.Instance.Manager;
manager.DeinitializeLoader();
manager.StopSubsystems();
}