diff --git a/Packages/src/Editor/UIEffectEditor.cs b/Packages/src/Editor/UIEffectEditor.cs index ffb09fb..335f1f5 100644 --- a/Packages/src/Editor/UIEffectEditor.cs +++ b/Packages/src/Editor/UIEffectEditor.cs @@ -457,7 +457,10 @@ private static void DrawPresetMenu(Object[] targets) r.x += r.width; if (GUI.Button(r, EditorGUIUtility.TrTempContent("Save As New"), "MiniButton")) { - UIEffectProjectSettings.SaveAsNewPreset(targets.OfType().FirstOrDefault()); + EditorApplication.delayCall += () => + { + UIEffectProjectSettings.SaveAsNewPreset(targets.OfType().FirstOrDefault()); + }; } } }