public static void ApplyScriptReload() { if (!MightySettingsServices.Activated) { return; } EnableReloadScripts(); BeginReloadScripts(); EndReloadScripts(); DisableReloadScripts(); MightyDebugUtilities.MightyDebug("Reload Scripts Applied"); }
public static void OnReloadScripts() { if (!MightySettingsServices.ActivateReloadScripts) { return; } if (!MightySettingsServices.Activated) { return; } EnableReloadScripts(); BeginReloadScripts(); EndReloadScripts(); MightyDebugUtilities.MightyDebug("Reload Scripts Applied", MightyDebugUtilities.LogType.ReloadScripts); }
public static async void ApplyAutoValuesAsync() { AutoValuesWindowUtilities.Open(); await Task.Delay(50); var mightyEditors = MightyEditorUtilities.GetMightyEditors().ToArray(); AutoValuesWindowUtilities.DisplayCount(mightyEditors.Length); for (var i = 0; i < mightyEditors.Length; i++) { AutoValuesWindowUtilities.SetIndex(i); await Task.Yield(); mightyEditors[i].ApplyAutoValues(); } AutoValuesWindowUtilities.Close(); MightyDebugUtilities.MightyDebug("Auto Values Applied"); }
public static void ApplyAutoValues() { for (var i = 0; i < SceneManager.sceneCount; i++) { foreach (var script in ReferencesUtilities.FindAllObjects <MonoBehaviour>(SceneManager.GetSceneAt(i))) { if (MightyEditorUtilities.CreateMightyEditor <MonoBehaviourEditor>(script, out var mightyEditor)) { mightyEditor.ApplyAutoValues(); } } } foreach (var script in typeof(ScriptableObject).FindAssetsOfType()) { if (MightyEditorUtilities.CreateMightyEditor <ScriptableObjectEditor>(script, out var mightyEditor)) { mightyEditor.ApplyAutoValues(); } } MightyDebugUtilities.MightyDebug("Auto Values Applied", MightyDebugUtilities.LogType.AutoValues); }
public static void RefreshHierarchy() { InitHierarchy(); MightyDebugUtilities.MightyDebug("Hierarchy Refreshed"); }