SteamVR_Settings.Update C# (CSharp) Method

Update() static private method

static private Update ( ) : void
return void
    static void Update()
    {
        bool show =
            (!EditorPrefs.HasKey(ignore + defaultIsFullScreen) &&
                PlayerSettings.defaultIsFullScreen != recommended_DefaultIsFullScreen) ||
            (!EditorPrefs.HasKey(ignore + defaultScreenSize) &&
                (PlayerSettings.defaultScreenWidth != recommended_DefaultScreenWidth ||
                PlayerSettings.defaultScreenHeight != recommended_DefaultScreenHeight)) ||
            (!EditorPrefs.HasKey(ignore + runInBackground) &&
                PlayerSettings.runInBackground != recommended_RunInBackground) ||
            (!EditorPrefs.HasKey(ignore + displayResolutionDialog) &&
                PlayerSettings.displayResolutionDialog != recommended_DisplayResolutionDialog) ||
            (!EditorPrefs.HasKey(ignore + resizableWindow) &&
                PlayerSettings.resizableWindow != recommended_ResizableWindow) ||
            (!EditorPrefs.HasKey(ignore + fullscreenMode) &&
                PlayerSettings.d3d11FullscreenMode != recommended_FullscreenMode) ||
            (!EditorPrefs.HasKey(ignore + visibleInBackground) &&
                PlayerSettings.visibleInBackground != recommended_VisibleInBackground) ||
            (!EditorPrefs.HasKey(ignore + renderingPath) &&
                PlayerSettings.renderingPath != recommended_RenderPath) ||
            (!EditorPrefs.HasKey(ignore + colorSpace) &&
                PlayerSettings.colorSpace != recommended_ColorSpace) ||
            (!EditorPrefs.HasKey(ignore + stereoscopicRendering) &&
                PlayerSettings.stereoscopic3D != recommended_StereoscopicRendering) ||
        #if UNITY_5_1
            (!EditorPrefs.HasKey(ignore + virtualRealitySupported) &&
                PlayerSettings.virtualRealitySupported != recommended_VirtualRealitySupported) ||
        #endif
            forceShow;

        if (show)
        {
            window = GetWindow<SteamVR_Settings>(true);
            window.minSize = new Vector2(320, 440);
            //window.title = "SteamVR";
        }

        EditorApplication.update -= Update;
    }