コード例 #1
0
        public static void ApplyScriptReload()
        {
            if (!MightySettingsServices.Activated)
            {
                return;
            }

            EnableReloadScripts();

            BeginReloadScripts();
            EndReloadScripts();

            DisableReloadScripts();

            MightyDebugUtilities.MightyDebug("Reload Scripts Applied");
        }
コード例 #2
0
        public static void OnReloadScripts()
        {
            if (!MightySettingsServices.ActivateReloadScripts)
            {
                return;
            }
            if (!MightySettingsServices.Activated)
            {
                return;
            }

            EnableReloadScripts();

            BeginReloadScripts();
            EndReloadScripts();

            MightyDebugUtilities.MightyDebug("Reload Scripts Applied", MightyDebugUtilities.LogType.ReloadScripts);
        }
コード例 #3
0
ファイル: MightyAutoValues.cs プロジェクト: Nama3/madrace
        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");
        }
コード例 #4
0
ファイル: MightyAutoValues.cs プロジェクト: Nama3/madrace
        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);
        }
コード例 #5
0
 public static void RefreshHierarchy()
 {
     InitHierarchy();
     MightyDebugUtilities.MightyDebug("Hierarchy Refreshed");
 }