Skip to content

Commit 93e5b95

Browse files
committed
Minor cleanup
1 parent eadabbd commit 93e5b95

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Assets/MRTK/SDK/Features/UX/Scripts/Utilities/FeaturesPanelVisuals.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ internal class FeaturesPanelVisuals : MonoBehaviour
2121
[SerializeField]
2222
private Interactable handJointsButton = null;
2323

24-
// Start is called before the first frame update
25-
void Start()
24+
private void Start()
2625
{
2726
profilerButton.IsToggled = (CoreServices.DiagnosticsSystem?.ShowProfiler).GetValueOrDefault(false);
2827
handRayButton.IsToggled = PointerUtils.GetPointerBehavior<ShellHandRayPointer>(Handedness.Any, InputSourceType.Hand) != PointerBehavior.AlwaysOff;
@@ -32,8 +31,8 @@ void Start()
3231
{
3332
handProfile = CoreServices.InputSystem.InputSystemProfile.HandTrackingProfile;
3433
}
35-
handMeshButton.IsToggled = (handProfile != null) ? handProfile.EnableHandMeshVisualization : false;
36-
handJointsButton.IsToggled = (handProfile != null) ? handProfile.EnableHandJointVisualization : false;
34+
handMeshButton.IsToggled = handProfile != null && handProfile.EnableHandMeshVisualization;
35+
handJointsButton.IsToggled = handProfile != null && handProfile.EnableHandJointVisualization;
3736
}
3837
}
3938
}

0 commit comments

Comments
 (0)