File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed 
Packages/com.unity.inputsystem/InputSystem/Plugins/XR Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,11 @@ protected virtual void Awake()
421421#if UNITY_INPUT_SYSTEM_ENABLE_VR  &&  ENABLE_VR 
422422            if  ( HasStereoCamera ( out  var  cameraComponent ) ) 
423423            { 
424+                 // The Unity 6.4+ replacement for this call has to be figured later 
425+                 // See https://jira.unity3d.com/browse/XR-7591 
426+ #pragma warning disable CS0618 
424427                UnityEngine . XR . XRDevice . DisableAutoXRCameraTracking ( cameraComponent ,  true ) ; 
428+ #pragma warning restore CS0618  
425429            } 
426430#endif
427431        } 
@@ -458,7 +462,11 @@ protected virtual void OnDestroy()
458462#if UNITY_INPUT_SYSTEM_ENABLE_VR  &&  ENABLE_VR 
459463            if  ( HasStereoCamera ( out  var  cameraComponent ) ) 
460464            { 
465+                 // The Unity 6.4+ replacement for this call has to be figured later 
466+                 // See https://jira.unity3d.com/browse/XR-7591 
467+ #pragma warning disable CS0618 
461468                UnityEngine . XR . XRDevice . DisableAutoXRCameraTracking ( cameraComponent ,  false ) ; 
469+ #pragma warning restore CS0618 
462470            } 
463471#endif
464472        } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments