private void Diagnose() { NGDiagnostic.Log(NGFavWindow.Title, "CurrentFav", this.currentSave); FavSettings settings = HQ.Settings.Get <FavSettings>(); for (int i = 0; i < settings.favorites.Count; i++) { NGDiagnostic.Log(NGFavWindow.Title, "Fav[" + i + "]", JsonUtility.ToJson(settings.favorites[i])); } }
static NGHubWindow() { // In the case of NG Hub as dock, the layout won't load it at the second restart. Certainly due to the window's state as Popup, but it does not explain why it only occurs at the second restart. EditorApplication.delayCall += () => { int forceRecreate = NGEditorPrefs.GetInt(NGHubWindow.ForceRecreateKeyPref + "_" + Application.dataPath, 0); NGDiagnostic.Log(NGHubWindow.Title, "ForceRecreate", forceRecreate); if (forceRecreate == (int)DockState.ProperlyDisabled && Resources.FindObjectsOfTypeAll <NGHubWindow>().Length == 0) { NGHubWindow.OpenAsDock(); } }; }
private void Diagnose() { NGDiagnostic.Log(NGHubWindow.Title, "IsDocked", this.dockedAsMenu); NGDiagnostic.Log(NGHubWindow.Title, "HasExtension", this.extensionWindow != null); if (this.initialized == true) { NGDiagnostic.Log(NGHubWindow.Title, "Components", this.components.Count); for (int i = 0; i < this.components.Count; i++) { NGDiagnostic.Log(NGHubWindow.Title, "Components[" + i + "]", JsonUtility.ToJson(this.components[i]).Insert(1, "\"type\":\"" + this.components[i].GetType().Name + "\",")); } } }