-
Notifications
You must be signed in to change notification settings - Fork 166
SeeItSayItLabel improvements (#593) #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
keveleigh
merged 14 commits into
MixedRealityToolkit:main
from
anonymous2585:feature/translation-593
Jul 22, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f09a364
Add SeeItSayItLabel automatic update when changing button's keyword, …
Jumph b3bac89
Fix tests compilation without speech package (#593) (#792)
Jumph 83c66d3
Fix SeeItSayItLabelEnabler not unsubscribing on destroy (#593) (#792)
Jumph 16396ff
Fix tests for unsupported machine (#593) (#792)
Jumph 1a87466
Merge branch 'main' into feature/translation-593
david-c-kline 7214335
Update org.mixedrealitytoolkit.uxcore/SeeItSayIt/SeeItSayItLabelEnabl…
david-c-kline 1c461d4
Merge branch 'main' into feature/translation-593
keveleigh 3a053ec
Update CHANGELOG.md
keveleigh 1f5a4fd
Formatting and typo updates
keveleigh da064f6
Remove space from scene name
keveleigh 90face3
Update SeeItSayItLabelEnabler.cs
keveleigh 8dae00c
Always fall back to pattern if localizedPattern is empty
keveleigh 19f3495
Add custom editor
keveleigh 3d39d80
Merge branch 'main' into feature/translation-593
keveleigh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
org.mixedrealitytoolkit.uxcore/Editor/Inspectors/SeeItSayIt.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
...ixedrealitytoolkit.uxcore/Editor/Inspectors/SeeItSayIt/SeeItSayItLabelEnablerInspector.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| // Copyright (c) Mixed Reality Toolkit Contributors | ||
| // Licensed under the BSD 3-Clause | ||
|
|
||
| using MixedReality.Toolkit.UX; | ||
| using UnityEditor; | ||
|
|
||
| namespace MixedReality.Toolkit.Editor | ||
| { | ||
| [CustomEditor(typeof(SeeItSayItLabelEnabler))] | ||
| public class SeeItSayItLabelEnablerInspector : UnityEditor.Editor | ||
| { | ||
| private SerializedProperty localizedPattern = null; | ||
| private SerializedProperty pattern = null; | ||
|
|
||
| private void OnEnable() | ||
| { | ||
| localizedPattern = serializedObject.FindProperty(nameof(localizedPattern)); | ||
| pattern = serializedObject.FindProperty(nameof(pattern)); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Called by the Unity editor to render custom inspector UI for this component. | ||
| /// </summary> | ||
| public override void OnInspectorGUI() | ||
| { | ||
| DrawPropertiesExcluding(serializedObject, "localizedPattern", "pattern"); | ||
|
|
||
| if (localizedPattern != null) | ||
| { | ||
| EditorGUILayout.PropertyField(localizedPattern); | ||
| } | ||
|
|
||
| if (localizedPattern == null || | ||
| (string.IsNullOrEmpty(localizedPattern.FindPropertyRelative("m_TableEntryReference").FindPropertyRelative("m_Key").stringValue) | ||
| && localizedPattern.FindPropertyRelative("m_TableEntryReference").FindPropertyRelative("m_KeyId").longValue == 0) | ||
| || string.IsNullOrEmpty(localizedPattern.FindPropertyRelative("m_TableReference").FindPropertyRelative("m_TableCollectionName").stringValue)) | ||
| { | ||
| if (localizedPattern != null) | ||
| { | ||
| EditorGUILayout.HelpBox("Pattern is only used when the Localized Pattern above is not set.", MessageType.Info); | ||
| } | ||
| EditorGUILayout.PropertyField(pattern); | ||
| } | ||
|
|
||
| serializedObject.ApplyModifiedProperties(); | ||
| } | ||
| } | ||
| } |
11 changes: 11 additions & 0 deletions
11
...ealitytoolkit.uxcore/Editor/Inspectors/SeeItSayIt/SeeItSayItLabelEnablerInspector.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.