Skip to content

Commit c1f40a1

Browse files
authored
Merge main into feature/XRI3 (#1055)
Keeping things up-to-date All tests pass: <img width="138" height="36" alt="{603272F5-6CF6-4A13-BBF3-6813B7E0429E}" src="https://github.com/user-attachments/assets/9994f382-4802-47b0-a450-383b89e69874" />
2 parents 1a2eed7 + d210d3d commit c1f40a1

File tree

34 files changed

+1134
-184
lines changed

34 files changed

+1134
-184
lines changed

UnityProjects/MRTKDevTemplate/ProjectSettings/EditorBuildSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ EditorBuildSettings:
120120
path: Assets/Scenes/Experimental/ScrollingExample.unity
121121
guid: 77e21ebc978cbc84f9ebe061742ae42d
122122
- enabled: 1
123-
path: Assets/Scenes/SeeItSayIt Example.unity
123+
path: Assets/Scenes/SeeItSayItExample.unity
124124
guid: cb7d2aaea1c5a4d469a6408ee9ddc5fc
125125
- enabled: 1
126126
path: Assets/Scenes/SlateDrawingExample.unity

org.mixedrealitytoolkit.core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5151

5252
* Updated tests to follow existing MRTK test patterns. [PR #1046](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1046)
5353

54+
### Added
55+
56+
* Added event `OnSpeechRecognitionKeywordChanged` to allow UI updates when the speech recognition keyword has changed. [PR #792](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/792/)
57+
5458
### Fixed
5559

5660
* Fixed broken project validation help link, for item 'MRTK3 profile may need to be assigned for the Standalone build target' (Issue #882) [PR #886](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/886)

org.mixedrealitytoolkit.core/Editor/Editors/StatefulInteractableEditor.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class StatefulInteractableEditor : BaseInteractableEditor
2323
private SerializedProperty allowSelectByVoice;
2424
private SerializedProperty SelectRequiresHover;
2525
private SerializedProperty speechRecognitionKeyword;
26+
private SerializedProperty OnSpeechRecognitionKeywordChanged;
2627
private SerializedProperty VoiceRequiresFocus;
2728
private SerializedProperty UseGazeDwell;
2829
private SerializedProperty GazeDwellTime;
@@ -34,6 +35,7 @@ public class StatefulInteractableEditor : BaseInteractableEditor
3435
private SerializedProperty OnEnabled;
3536
private SerializedProperty OnDisabled;
3637
private static bool advancedFoldout = false;
38+
private static bool speechRecognitionKeywordEventFoldout = false;
3739
private static bool enabledEventsFoldout = false;
3840

3941
/// <summary>
@@ -57,6 +59,7 @@ protected override void OnEnable()
5759

5860
allowSelectByVoice = SetUpProperty(nameof(allowSelectByVoice));
5961
speechRecognitionKeyword = SetUpProperty(nameof(speechRecognitionKeyword));
62+
OnSpeechRecognitionKeywordChanged = SetUpAutoProperty(nameof(OnSpeechRecognitionKeywordChanged));
6063
VoiceRequiresFocus = SetUpAutoProperty(nameof(VoiceRequiresFocus));
6164

6265
SelectRequiresHover = SetUpAutoProperty(nameof(SelectRequiresHover));
@@ -166,8 +169,13 @@ protected void DrawProperties(bool showToggleMode)
166169
{
167170
using (new EditorGUI.IndentLevelScope())
168171
{
169-
EditorGUILayout.PropertyField(speechRecognitionKeyword);
170172
EditorGUILayout.PropertyField(VoiceRequiresFocus);
173+
EditorGUILayout.PropertyField(speechRecognitionKeyword);
174+
speechRecognitionKeywordEventFoldout = EditorGUILayout.Foldout(speechRecognitionKeywordEventFoldout, EditorGUIUtility.TrTempContent("Speech Recognition Keyword event"), true);
175+
if (speechRecognitionKeywordEventFoldout)
176+
{
177+
EditorGUILayout.PropertyField(OnSpeechRecognitionKeywordChanged);
178+
}
171179
}
172180
}
173181

org.mixedrealitytoolkit.core/Interactables/StatefulInteractable.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,17 @@ public string SpeechRecognitionKeyword
150150
{
151151
interactionManager.RegisterInteractable(this as IXRInteractable);
152152
}
153+
OnSpeechRecognitionKeywordChanged.Invoke(speechRecognitionKeyword);
153154
}
154155
}
155156
}
156-
157+
158+
/// <summary>
159+
/// Fired when the <see cref="SpeechRecognitionKeyword"/> has changed.
160+
/// </summary>
161+
[field: SerializeField, Tooltip("Fired when the Speech Recognition Keyword has changed.")]
162+
public UnityEvent<string> OnSpeechRecognitionKeywordChanged { get; private set; } = new UnityEvent<string>();
163+
157164
/// <summary>
158165
/// Does the voice command require this to have focus?
159166
/// If true, then the voice command will only respond to voice commands while this Interactable has focus.

org.mixedrealitytoolkit.input/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
2121
* Updated the minimum editor version to 2022.3.6f1 [PR #1003](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1003)
2222
* Updated tests to follow existing MRTK test patterns. [PR #1046](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1046)
2323
* Remapped the synthetic hands config to read the float "select value" action instead of the bool "select" action, since it's read as a float. [PR #1043](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1043)
24+
* Updated tests to follow existing MRTK test patterns. [PR #1046](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1046)
2425

2526
### Removed
2627

org.mixedrealitytoolkit.input/Tests/Runtime/Utilities/TestHand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public override IEnumerator AimAt(Vector3 target, int numSteps = InputTestUtilit
9696
}
9797

9898
/// <summary>
99-
/// Changes the hand's pose to the given handshape. Does not animate the hand between the current pose and new pose.
99+
/// Changes the hand's pose to the given handshape. Does not animate the hand between the current pose and new pose.
100100
/// </summary>
101101
/// <param name="newHandshapeId">The new hand pose.</param>
102-
/// <param name="numSteps">The new hand pose.</param>
102+
/// <param name="numSteps">The number of steps to take to reach the new hand pose.</param>
103103
/// <param name="waitForFixedUpdate">If true, waits for a fixed update after moving to the new pose.</param>
104104
public IEnumerator SetHandshape(HandshapeId newHandshapeId, int numSteps = InputTestUtilities.ControllerMoveStepsSentinelValue, bool waitForFixedUpdate = true)
105105
{
@@ -112,7 +112,7 @@ public IEnumerator SetHandshape(HandshapeId newHandshapeId, int numSteps = Input
112112
}
113113

114114
/// <summary>
115-
/// Combined sequence of pinching and unpinching
115+
/// Combined sequence of pinching and unpinching.
116116
/// </summary>
117117
public override IEnumerator Click()
118118
{
@@ -123,4 +123,4 @@ public override IEnumerator Click()
123123
}
124124
}
125125
}
126-
#pragma warning restore CS1591
126+
#pragma warning restore CS1591

org.mixedrealitytoolkit.spatialmanipulation/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
2828
### Added
2929

3030
* Added different types of maintaining scale for bounds handles. [PR #976](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/976)
31+
* Added InitializeToTargetForward field/property to RadialView to position a GameObject in front of its target (like at the center of the view) when it becomes enabled. [PR #655](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/655)
3132

3233
### Fixed
3334

3435
* Fixed tap to place `StartPlacement()` when called just after instantiation of the component. [PR #785](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/785)
3536
* Fix null ref in SpatialManipulationReticle when multiple interactables are hovered. [PR #873](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/873)
3637
* ConstantViewSize solver now retains the initial scale and aspect ratio [PR #719](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/719)
3738
* Fixed Follow solver frequently logging "Look Rotation Viewing Vector Is Zero" [PR #895](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/895)
39+
* Fixed issues with HandConstraint hand tracking events not being fired (OnFirstHandDetected/OnHandActivate/OnLastHandLost/OnHandDeactivate) when SolverHandler TrackedHand is set to Right or Left (not Both) [PR #956](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/956)
3840

3941
## [3.3.0] - 2024-04-30
4042

org.mixedrealitytoolkit.spatialmanipulation/Editor/MRTK.SpatialManipulation.Editor.asmdef

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"references": [
55
"MixedReality.Toolkit.Core",
66
"MixedReality.Toolkit.Core.Editor",
7-
"MixedReality.Toolkit.Input",
8-
"MixedReality.Toolkit.Input.Editor",
97
"MixedReality.Toolkit.SpatialManipulation",
108
"Unity.XR.Interaction.Toolkit",
119
"Unity.XR.Interaction.Toolkit.Editor"

0 commit comments

Comments
 (0)