private static void UpdateSchedulers() { try { RetainedMode.UpdateSchedulersInternal(RetainedMode.s_TmpDirtySet); } finally { RetainedMode.s_TmpDirtySet.Clear(); } }
private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { for (int i = 0; i < importedAssets.Length; i++) { string text = importedAssets[i]; if (text.EndsWith("uss")) { RetainedMode.FlagStyleSheetChange(); break; } } }
private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { bool flag = false; bool flag2 = false; for (int i = 0; i < importedAssets.Length; i++) { string text = importedAssets[i]; if (text.EndsWith("uss")) { if (!flag2) { flag2 = true; RetainedMode.FlagStyleSheetChange(); } } else if (text.EndsWith("uxml")) { if (!flag) { flag = true; UIElementsViewImporter.logger.FinishImport(); StyleSheetCache.ClearCaches(); if (RetainedMode.UxmlLiveReloadIsEnabled) { Delegate arg_92_0 = EditorApplication.update; if (RetainedMode.< > f__mg$cache2 == null) { RetainedMode.< > f__mg$cache2 = new EditorApplication.CallbackFunction(RetainedMode.OneShotUxmlLiveReload); } EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Combine(arg_92_0, RetainedMode.< > f__mg$cache2); } } } if (flag && flag2) { break; } } }