UnityEditor.FrameDebuggerWindow.DisableFrameDebugger C# (CSharp) Method

DisableFrameDebugger() private static method

private static DisableFrameDebugger ( ) : void
return void
        private static void DisableFrameDebugger()
        {
            if (FrameDebuggerUtility.enabled)
            {
                EditorApplication.SetSceneRepaintDirty();
            }
            FrameDebuggerUtility.enabled = false;
        }

Usage Example

示例#1
0
 internal void OnDisable()
 {
     if (this.m_WireMaterial != null)
     {
         UnityEngine.Object.DestroyImmediate(this.m_WireMaterial, true);
     }
     if (this.m_PreviewUtility != null)
     {
         this.m_PreviewUtility.Cleanup();
         this.m_PreviewUtility = null;
     }
     FrameDebuggerWindow.s_FrameDebuggers.Remove(this);
     EditorApplication.playmodeStateChanged = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.playmodeStateChanged, new EditorApplication.CallbackFunction(this.OnPlayModeStateChanged));
     FrameDebuggerWindow.DisableFrameDebugger();
 }
All Usage Examples Of UnityEditor.FrameDebuggerWindow::DisableFrameDebugger