We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 381cb14 + 36a91d1 commit 8674de9Copy full SHA for 8674de9
Assets/MixedRealityToolkit/InputSystem/MixedRealityInputManager.cs
@@ -166,6 +166,18 @@ public override void Destroy()
166
{
167
InputDisabled?.Invoke();
168
169
+ if (FocusProvider.UIRaycastCamera != null)
170
+ {
171
+ if (Application.isEditor)
172
173
+ UnityEngine.Object.DestroyImmediate(FocusProvider.UIRaycastCamera.gameObject);
174
+ }
175
+ else
176
177
+ UnityEngine.Object.Destroy(FocusProvider.UIRaycastCamera.gameObject);
178
179
180
+
181
if (focusProvider != null)
182
183
focusProvider.enabled = false;
0 commit comments