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 334f06a + 45ea419 commit 385e880Copy full SHA for 385e880
Assets/MixedRealityToolkit-SDK/Features/Input/MixedRealityInputManager.cs
@@ -14,7 +14,6 @@
14
using Microsoft.MixedReality.Toolkit.Internal.Utilities;
15
using System;
16
using System.Collections.Generic;
17
-using System.Threading.Tasks;
18
using UnityEngine;
19
using UnityEngine.EventSystems;
20
@@ -92,6 +91,12 @@ public override void Initialize()
92
91
93
private void InitializeInternal()
94
{
+ if (CameraCache.Main.transform.parent == null)
95
+ {
96
+ var cameraParent = new GameObject("Body");
97
+ CameraCache.Main.transform.SetParent(cameraParent.transform);
98
+ }
99
+
100
focusProvider = CameraCache.Main.gameObject.EnsureComponent<FocusProvider>();
101
gazeProvider = CameraCache.Main.gameObject.EnsureComponent<GazeProvider>();
102
0 commit comments