Exemple #1
0
 public static CVRSystem Init(ref EVRInitError peError, EVRApplicationType eApplicationType = EVRApplicationType.VRApplication_Scene)
 {
     OpenVR.VRToken = OpenVR.InitInternal(ref peError, eApplicationType);
     OpenVR.OpenVRInternal_ModuleContext.Clear();
     if (peError != EVRInitError.None)
     {
         return(null);
     }
     if (!OpenVR.IsInterfaceVersionValid("IVRSystem_011"))
     {
         OpenVR.ShutdownInternal();
         peError = EVRInitError.Init_InterfaceNotFound;
         return(null);
     }
     return(OpenVR.System);
 }
Exemple #2
0
 public static void Shutdown()
 {
     OpenVR.ShutdownInternal();
 }