You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/MRTK/Providers/Experimental/WindowsSceneUnderstanding/Editor/WindowsSceneUnderstandingConfigChecker.cs
Copy file name to clipboardExpand all lines: Assets/MRTK/Providers/Experimental/WindowsSceneUnderstanding/WindowsSceneUnderstandingObserver.cs
+30-18Lines changed: 30 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -97,25 +97,33 @@ private void ReadProfile()
97
97
OrientScene=profile.OrientScene;
98
98
}
99
99
100
-
#if SCENE_UNDERSTANDING_PRESENT
101
-
102
100
#region IMixedRealityService
103
101
102
+
#if SCENE_UNDERSTANDING_PRESENT
103
+
104
104
/// <inheritdoc />
105
105
publicoverridevoidReset()
106
106
{
107
107
CleanupObserver();
108
108
Initialize();
109
109
}
110
110
111
+
#endif // SCENE_UNDERSTANDING_PRESENT
112
+
111
113
/// <inheritdoc />
112
114
publicoverridevoidInitialize()
113
115
{
114
116
base.Initialize();
117
+
#if !SCENE_UNDERSTANDING_PRESENT
118
+
if(Application.isPlaying)
119
+
{
120
+
Debug.LogWarning("The required package Microsoft.MixedReality.SceneUnderstanding is not installed or properly configured. Please visit https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/spatial-awareness/scene-understanding for more information.");
0 commit comments