Skip to content

Commit

Permalink
always show root profile configurations (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Jun 9, 2021
1 parent 0f0b333 commit 17284ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ public override void OnInspectorGUI()
RenderConfigurationOptions();
}

protected void RenderConfigurationOptions()
protected void RenderConfigurationOptions(bool forceExpanded = false)
{
if (forceExpanded)
{
configurations.isExpanded = true;
}

configurations.isExpanded = EditorGUILayoutExtensions.FoldoutWithBoldLabel(configurations.isExpanded, new GUIContent($"{ServiceConstraint.Name} Configuration Options"));

if (configurations.isExpanded)
Expand Down
2 changes: 1 addition & 1 deletion Editor/Profiles/MixedRealityToolkitRootProfileInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ internal void RenderSystemFields()
}
}

RenderConfigurationOptions();
RenderConfigurationOptions(true);

serializedObject.Update();

Expand Down

0 comments on commit 17284ab

Please sign in to comment.