Search Issue Tracker
Won't Fix
Won't Fix in 1.7.X
Votes
1
Found in [Package]
1.6.0
1.7.0
Issue ID
OXRB-182
Regression
No
UWP - Initialize and Start XR subsystems during runtime
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:
{quote}~{color:#172b4d}public static void StartSubsystems(){color}~
~{color:#172b4d}{{color}~
~{color:#172b4d}var manager = XRGeneralSettings.Instance.Manager;{color}{color:#172b4d}
manager.InitializeLoaderSync();{color}~
~{color:#172b4d}manager.StartSubsystems();{color}~
}
public static void StopSubsystems()~
~{color:#172b4d}{{color}~
~{color:#172b4d}var manager = XRGeneralSettings.Instance.Manager;{color}~
~{color:#172b4d}manager.DeinitializeLoader();{color}~
~{color:#172b4d}manager.StopSubsystems();{color}~
~}~
{quote}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader warning in 'Hidden/Core/DebugOccluder' thrown after building High Definition 3D Sample Template
- Audio Mixer “+” buttons overlap with UI when the Audio Mixer window layout is set to Horizontal
- "Clear" button in the "Set project display name" closes all the pop-up instead of clearing just a name from the field
- Video Player renders no video on specific devices when using Vulkan
- The Editor slows itself down by showing tons of warnings when the majority of TransformAccessArrays content are NullRefs
Resolution Note:
Talked with the reporter offline. They're good with closing this.
Resolution Note (1.7.X):
Talked with the reporter offline. They're good with closing this.