Skip to content

Commit c3127d8

Browse files
authored
Merge pull request #7200 from keveleigh/one-pragma-more
Fix-up more usages of legacy XR APIs
2 parents afd2104 + 9b9e876 commit c3127d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/MixedRealityToolkit.SDK/Experimental/Features/Utilities/StabilizationPlaneModifier.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private bool TryGetGazeHitPosition(out Vector3 hitPosition)
267267
}
268268

269269
/// <summary>
270-
/// Configures the stabilization plane to update its position based on an object in the scene.
270+
/// Configures the stabilization plane to update its position based on an object in the scene.
271271
/// </summary>
272272
private void ConfigureTransformOverridePlane(float deltaTime)
273273
{
@@ -354,7 +354,9 @@ private void ConfigureGazeManagerPlane(float deltaTime)
354354
debugPlane.Center = planePosition;
355355
debugPlane.Normal = -gazeDirection;
356356
#elif UNITY_WSA
357+
#pragma warning disable 0618
357358
HolographicSettings.SetFocusPointForFrame(planePosition, -gazeDirection, Vector3.zero);
359+
#pragma warning restore 0618
358360
#endif
359361
}
360362

@@ -377,7 +379,9 @@ private void ConfigureFixedDistancePlane(float deltaTime)
377379
debugPlane.Center = planePosition;
378380
debugPlane.Normal = -gazeNormal;
379381
#elif UNITY_WSA
382+
#pragma warning disable 0618
380383
HolographicSettings.SetFocusPointForFrame(planePosition, -gazeNormal, Vector3.zero);
384+
#pragma warning restore 0618
381385
#endif
382386
}
383387

0 commit comments

Comments
 (0)