forked from cgvr/DeltaVR
deltavr multiplayer 2.0
This commit is contained in:
12
Assets/_PROJECT/Components/Portals/XRCameraIgnore.cs
Normal file
12
Assets/_PROJECT/Components/Portals/XRCameraIgnore.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user