Exemplo n.º 1
0
    void Start()
    {
        // record
        this.isFrameRateLimitForBoundary = BoundarySystem.UPvr_GetFrameRateLimit();
        this.recordTargetFrameRate       = Application.targetFrameRate;

#if !UNITY_EDITOR && UNITY_ANDROID
        SetCamerasEnableByStereoRendering();
        SetupMonoCamera();
#endif

#if UNITY_EDITOR
        SetCameraEnableEditor();
#endif
    }
Exemplo n.º 2
0
 void Start()
 {
     Setup(eyeSide);
     SetupUpdate();
     if (eyecamera != null)
     {
         #region BoundarySystem
         // record
         eyeCameraOriginCullingMask     = eyecamera.cullingMask;
         eyeCameraOriginClearFlag       = eyecamera.clearFlags;
         eyeCameraOriginBackgroundColor = eyecamera.backgroundColor;
         applicationOriginFrameRate     = Application.targetFrameRate;
         boundaryFrameRate = BoundarySystem.UPvr_GetFrameRateLimit();
         #endregion
     }
 }