Skip to content

Commit

Permalink
De-initialize XR Subsytems properly (#695)
Browse files Browse the repository at this point in the history
* Correctly de-init xr subsystems

* Update Rider plugin
  • Loading branch information
andybak authored Apr 26, 2024
1 parent a48de31 commit 2fef407
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Assets/Scripts/VrSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ void OnDestroy()
Application.onBeforeRender -= OnNewPoses;
InputDevices.deviceConnected -= OnUnityXRDeviceConnected;
InputDevices.deviceDisconnected -= OnUnityXRDeviceDisconnected;
XRGeneralSettings.Instance?.Manager?.StopSubsystems();
XRGeneralSettings.Instance?.Manager?.DeinitializeLoader();
}
}

Expand Down
2 changes: 1 addition & 1 deletion Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"com.unity.cloud.gltfast": "6.0.1",
"com.unity.editorcoroutines": "1.0.0",
"com.unity.formats.usd": "1.0.3-preview.2",
"com.unity.ide.rider": "3.0.24",
"com.unity.ide.rider": "3.0.28",
"com.unity.ide.visualstudio": "2.0.20",
"com.unity.inputsystem": "https://github.com/icosa-mirror/com.unity.inputsystem.git#open-brush",
"com.unity.localization": "1.4.2",
Expand Down
2 changes: 1 addition & 1 deletion Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.rider": {
"version": "3.0.24",
"version": "3.0.28",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down

0 comments on commit 2fef407

Please sign in to comment.