This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
using HTC.UnityPlugin.Vive; | |
using OpenCVForUnity; | |
using Valve.VR; | |
using System; | |
using System.Runtime.InteropServices; | |
public class ComicViveFilter : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Awake() | |
{ | |
#if (UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0) | |
var go = new GameObject("cameraMask"); | |
go.transform.parent = transform; | |
cameraMask = go.AddComponent<SteamVR_CameraMask>(); | |
#endif | |
if (System.IO.File.Exists(externalCameraConfigPath)) { | |
{ | |
if (externalCamera == null) { |