// [UnityEditor.Callbacks.DidReloadScripts(100)] // private static void OnScriptsReloaded() // { //// Debug.Log("Scripts Reloaded"); // ExecuteProcessor(); // } private static void ExecuteProcessor() { if (EditorApplication.isPlayingOrWillChangePlaymode) { return; } if (EditorApplication.isCompiling || EditorApplication.isUpdating) { DelayedCall.Run(2f, ExecuteProcessor); return; } ProcessorsSettings.ResetInstance(); if (!ProcessorsSettings.Instance.RunDoozyAssetsProcessor) { return; } DelayedCall.Run(3f, Run); }
public static void ResetInstance() { s_instance = null; }