Skip to content

Commit 8c72cf5

Browse files
m-the-hoffRogPodgekeveleigh
committed
Feature/profile tooltips (#10180)
* Add tooltips to the profile inspector for the MixedRealityToolkit prefab. * Update Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs Co-authored-by: Kurtis <[email protected]> * Update Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs Co-authored-by: Kurtis <[email protected]> * Update Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs Co-authored-by: Kurtis <[email protected]> * Update Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs Co-authored-by: RogPodge <[email protected]> Co-authored-by: Kurtis <[email protected]>
1 parent 8835f7e commit 8c72cf5

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ public class MixedRealityToolkitConfigurationProfileInspector : BaseMixedReality
7878
"Editor",
7979
};
8080

81+
private static readonly string[] ProfileTabTooltips = {
82+
"Settings that are global to the entire application. This includes desired room scale and coordinate offset.",
83+
"Settings for choosing the camera provider, clipping, default background color and other camera specific behaviors.",
84+
"Settings for input providers, including pointers, input actions, controllers, gestures and speech.",
85+
"Settings for the visualization of the boundary floor, ceiling, walls, play area and tracked area.",
86+
"Settings for the teleportation system.",
87+
"Settings for the spatial mesh observer, including refresh rate, level of detail, material and physics related to the mesh.",
88+
"Settings for the diagnostics heads up display.",
89+
"Settings for the Scene System.",
90+
"Settings for extensions, including the registry for adding new service providers.",
91+
"Settings that affect the editor experience but do not impact application at run-time."
92+
};
93+
8194
private static int SelectedProfileTab = 0;
8295
private const string SelectedTabPreferenceKey = "SelectedProfileTab";
8396

@@ -490,8 +503,16 @@ public override void OnInspectorGUI()
490503
EditorGUILayout.BeginVertical(EditorStyles.helpBox, GUILayout.Width(100));
491504
GUI.enabled = true; // Force enable so we can view profile defaults
492505

506+
GUIContent[] profileTitles = new GUIContent[ProfileTabTitles.Length];
507+
for (int profileIndex = 0; profileIndex < ProfileTabTitles.Length; profileIndex++)
508+
{
509+
profileTitles[profileIndex] = new GUIContent();
510+
profileTitles[profileIndex].text = ProfileTabTitles[profileIndex];
511+
profileTitles[profileIndex].tooltip = ProfileTabTooltips[profileIndex];
512+
}
513+
493514
int prefsSelectedTab = SessionState.GetInt(SelectedTabPreferenceKey, 0);
494-
SelectedProfileTab = GUILayout.SelectionGrid(prefsSelectedTab, ProfileTabTitles, 1, GUILayout.MaxWidth(125));
515+
SelectedProfileTab = GUILayout.SelectionGrid(prefsSelectedTab, profileTitles, 1, GUILayout.MaxWidth(125));
495516
if (SelectedProfileTab != prefsSelectedTab)
496517
{
497518
SessionState.SetInt(SelectedTabPreferenceKey, SelectedProfileTab);

0 commit comments

Comments
 (0)