diff --git a/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs b/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs index 180d4e60e35..7389adda875 100644 --- a/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs +++ b/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs @@ -72,25 +72,11 @@ private void OnDisable() ReticleSetActive(false); } - /// - /// A Unity event function that is called every frame, if this object is enabled. - /// - //private void LateUpdate() - //{ - // // if running in batch mode the onBeforeRender event doesn't fire so - // // we need to update the reticle here - // if (Application.isBatchMode) - // { - // UpdateReticle(); - // } - //} - private static readonly ProfilerMarker UpdateReticlePerfMarker = new ProfilerMarker("[MRTK] MRTKRayReticleVisual.UpdateReticle"); [BeforeRenderOrder(XRInteractionUpdateOrder.k_BeforeRenderLineVisual)] private void UpdateReticle() { - Debug.Log("UpdateReticle"); using (UpdateReticlePerfMarker.Auto()) { if (Reticle != null) diff --git a/com.microsoft.mrtk.spatialmanipulation/Tests/Runtime/BoundsControlTests.cs b/com.microsoft.mrtk.spatialmanipulation/Tests/Runtime/BoundsControlTests.cs index 8183754f85b..b3b65ee1d4d 100644 --- a/com.microsoft.mrtk.spatialmanipulation/Tests/Runtime/BoundsControlTests.cs +++ b/com.microsoft.mrtk.spatialmanipulation/Tests/Runtime/BoundsControlTests.cs @@ -318,7 +318,6 @@ public IEnumerator TestManipulationCursor([ValueSource(nameof(BoundsVisualsPrefa yield return HoverCursorRotation("RotateHandle (5)", new Vector3(0f, 180f, 90f), visualsPath); // Known side rotate handle yield return HoverCursorRotation("RotateHandle (10)", new Vector3(0f, 180f, 0f), visualsPath); - } private bool ApproximatelyEquals(Vector3 a, Vector3 b, float tolerance = 0.1f) @@ -372,7 +371,7 @@ private IEnumerator HoverCursorRotation(string handleName, Vector3 expectedRotat // Move it so the far ray hovers the handle Assert.IsNotNull(handle); yield return hand.AimAt(handle.transform.position); - yield return RuntimeTestUtilities.WaitForUpdates(frameCount:60); + yield return RuntimeTestUtilities.WaitForUpdates(); Assert.IsTrue(handle.isHovered, $"Handle should be hovered for {handleName}."); SpatialManipulationReticle[] reticles = Object.FindObjectsOfType();