File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Assets/MRTK/SDK/Features/UX/Scripts/Utilities Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments