Skip to content

Commit 64db056

Browse files
committed
Move debug to correct place
1 parent 924ba8b commit 64db056

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Assets/MRTK/Providers/OpenXR/Scripts/OpenXREyeGazeDataProvider.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public override void Enable()
101101
{
102102
if (!IsActiveLoader)
103103
{
104+
Debug.LogWarning($"{Name} requires Unity's OpenXR Plugin to be installed.");
104105
IsEnabled = false;
105106
return;
106107
}
@@ -124,10 +125,6 @@ private void ReadProfile()
124125
}
125126

126127
SmoothEyeTracking = profile.SmoothEyeTracking;
127-
128-
#if !UNITY_OPENXR
129-
Debug.LogWarning("OpenXR Eye Tracking Provider requires Unity's OpenXR Plugin to be installed.");
130-
#endif // !UNITY_OPENXR
131128
}
132129

133130
private static readonly ProfilerMarker UpdatePerfMarker = new ProfilerMarker("[MRTK] OpenXREyeGazeDataProvider.Update");

0 commit comments

Comments
 (0)