예제 #1
0
//        [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);
        }
예제 #2
0
 public static void ResetInstance()
 {
     s_instance = null;
 }