10-21-2020 08:12 PM
10-22-2020 03:25 AM
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DisplaySwitcher : MonoBehaviour
{
[SerializeField]
GameObject _flatCamera;
[SerializeField]
GameObject _VRCamera;
void Awake()
{
bool isPresent = VRUtils.isPresent();
_flatCamera.SetActive(!isPresent);
_VRCamera.SetActive(isPresent);
}
}