File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed 
org.mixedrealitytoolkit.input/Visualizers Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public XRInputButtonReader SelectInput
7878        /// </summary> 
7979        /// <seealso cref="XRInputButtonReader.EnableDirectActionIfModeUsed"/> 
8080        /// <seealso cref="XRInputButtonReader.DisableDirectActionIfModeUsed"/> 
81-         protected   List < XRInputButtonReader >  buttonReaders   {   get ;   }  =  new  List < XRInputButtonReader > ( ) ; 
81+         private   readonly   List < XRInputButtonReader >  buttonReaders  =  new  List < XRInputButtonReader > ( ) ; 
8282
8383        /// <summary> 
8484        /// Whether this visualizer currently has a loaded and visible hand mesh or not. 
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ protected override void OnEnable()
5050#if UNITY_OPENXR_PRESENT 
5151            if  ( UnityEngine . XR . OpenXR . OpenXRRuntime . IsExtensionEnabled ( "XR_ANDROID_hand_mesh" ) ) 
5252            { 
53+                 // If we already found our subsystem, just return 
54+                 if  ( meshSubsystem  !=  null  &&  meshSubsystem . running )  {  return ;  } 
55+ 
5356                List < XRMeshSubsystem >  meshSubsystems  =  new  List < XRMeshSubsystem > ( ) ; 
5457                SubsystemManager . GetSubsystems ( meshSubsystems ) ; 
5558                foreach  ( XRMeshSubsystem  subsystem  in  meshSubsystems ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments