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
21
21
[ SerializeField ]
22
22
private Interactable handJointsButton = null ;
23
23
24
- // Start is called before the first frame update
25
- void Start ( )
24
+ private void Start ( )
26
25
{
27
26
profilerButton . IsToggled = ( CoreServices . DiagnosticsSystem ? . ShowProfiler ) . GetValueOrDefault ( false ) ;
28
27
handRayButton . IsToggled = PointerUtils . GetPointerBehavior < ShellHandRayPointer > ( Handedness . Any , InputSourceType . Hand ) != PointerBehavior . AlwaysOff ;
@@ -32,8 +31,8 @@ void Start()
32
31
{
33
32
handProfile = CoreServices . InputSystem . InputSystemProfile . HandTrackingProfile ;
34
33
}
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 ;
37
36
}
38
37
}
39
38
}
You can’t perform that action at this time.
0 commit comments