Ejemplo n.º 1
0
 public override void CreateCamera(VRCameraHook hook)
 {
     if (hook.GetComponent <WaveVR_Render>() == null)
     {
         hook.gameObject.AddComponent <WaveVR_Render>();
     }
     if (hook.GetComponent <VivePoseTracker>() == null)
     {
         hook.gameObject.AddComponent <VivePoseTracker>().viveRole.SetEx(DeviceRole.Hmd);
     }
     if (hook.GetComponent <AudioListener>() != null)
     {
         Object.Destroy(hook.GetComponent <AudioListener>());
     }
 }
Ejemplo n.º 2
0
 public override void CreateCamera(VRCameraHook hook)
 {
     if (hook.GetComponent <TrackedPoseDriver>() == null)
     {
         hook.gameObject.AddComponent <TrackedPoseDriver>();
     }
 }
Ejemplo n.º 3
0
 public override void CreateCamera(VRCameraHook hook)
 {
     if (hook.GetComponent <SteamVR_Camera>() == null)
     {
         hook.gameObject.AddComponent <SteamVR_Camera>();
     }
 }