13 lines
		
	
	
		
			291 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			291 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| [RequireComponent(typeof(Camera))]
 | |
| public class XRCameraIgnore : MonoBehaviour
 | |
| {
 | |
|     private void Awake()
 | |
|     {
 | |
|         UnityEngine.XR.XRDevice.DisableAutoXRCameraTracking(GetComponent<Camera>(), true);
 | |
|     }
 | |
| }
 |