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: org.mixedrealitytoolkit.input/CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
14
14
* Added input action focus handling to disable controller/hand tracked state when the XrSession goes out of focus. [PR #1057](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1057)
15
15
* Added support for XR_MSFT_hand_tracking_mesh and XR_ANDROID_hand_mesh on compatible runtimes. [PR #993](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/993)
16
16
17
+
### Changed
18
+
19
+
* Updated `InteractionDetector` to work across all `XRRayInteractor` and `NearFarInteractor` implementations, instead of just MRTK-specific `MRTKRayInteractor` implementations. [PR #1090](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1090)
20
+
21
+
### Deprecated
22
+
23
+
* Deprecated `HasUIHover` and `HasUISelection` from `MRTKRayInteractor` in favor of querying the underlying `TrackedDeviceModel` directly instead. [PR #1090](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1090)
Copy file name to clipboardExpand all lines: org.mixedrealitytoolkit.input/Interactors/Ray/MRTKRayInteractor.cs
+3-22Lines changed: 3 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -63,33 +63,14 @@ public GameObject ModeManagedRoot
63
63
/// <summary>
64
64
/// Is this ray currently hovering a UnityUI/Canvas element?
65
65
/// </summary>
66
+
[Obsolete("This property has been deprecated in version 4.0.0. Call "+nameof(TryGetUIModel)+" and use "+nameof(TrackedDeviceModel.currentRaycast.isValid)+" instead.")]
/// Is this ray currently selecting a UnityUI/Canvas element?
70
71
/// </summary>
71
-
publicboolHasUISelection
72
-
{
73
-
get
74
-
{
75
-
boolhasUISelection=HasUIHover;
76
-
#pragma warning disable CS0618// isUISelectActive is obsolete
77
-
if(forceDeprecatedInput)
78
-
{
79
-
hasUISelection&=isUISelectActive;
80
-
}
81
-
#pragma warning restore CS0618// isUISelectActiver is obsolete
82
-
elseif(uiPressInput!=null)
83
-
{
84
-
hasUISelection&=uiPressInput.ReadIsPerformed();
85
-
}
86
-
else
87
-
{
88
-
hasUISelection=false;
89
-
}
90
-
returnhasUISelection;
91
-
}
92
-
}
72
+
[Obsolete("This property has been deprecated in version 4.0.0. Call "+nameof(TryGetUIModel)+" and use "+nameof(TrackedDeviceModel.select)+" instead.")]
Copy file name to clipboardExpand all lines: org.mixedrealitytoolkit.input/Tests/Runtime/InteractionModeManagerTests.cs
+52-25Lines changed: 52 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@
10
10
usingSystem;
11
11
usingSystem.Collections;
12
12
usingSystem.Collections.Generic;
13
-
usingSystem.Linq;
14
13
usingUnityEngine;
15
14
usingUnityEngine.TestTools;
16
15
usingUnityEngine.XR.Interaction.Toolkit;
@@ -68,7 +67,7 @@ public IEnumerator ProximityDetectorTest()
68
67
}
69
68
70
69
/// <summary>
71
-
/// Tests the basic Interaction detector. The controller should enter one mode during hover, another during select, and fall back to the default mode during neither
70
+
/// Tests the basic Interaction detector. The controller should enter one mode during hover, another during select, and fall back to the default mode during neither.
72
71
/// </summary>
73
72
[UnityTest]
74
73
publicIEnumeratorInteractionDetectorTest()
@@ -89,28 +88,43 @@ public IEnumerator InteractionDetectorTest()
// We construct the list of managed interactor types manually because we don't want to expose the internal controller mapping implementation to even internal use, since
192
-
// we don't want any other class to be able to modify those collections without going through the Mode Manager or it's in-editor inspector.
0 commit comments