diff --git a/Editor/UI/Settings/AutopilotSettingsEditor.cs b/Editor/UI/Settings/AutopilotSettingsEditor.cs index f58aaad..7c71de6 100644 --- a/Editor/UI/Settings/AutopilotSettingsEditor.cs +++ b/Editor/UI/Settings/AutopilotSettingsEditor.cs @@ -161,6 +161,7 @@ internal void Launch() { state.launchFrom = LaunchType.EditMode; #if UNITY_2020_3_OR_NEWER + EditorUtility.SetDirty(state); AssetDatabase.SaveAssetIfDirty(state); // Note: Sync with virtual players of MPPM package #endif EditorApplication.isPlaying = true; diff --git a/Runtime/Launcher.cs b/Runtime/Launcher.cs index 1340c06..72b97f8 100644 --- a/Runtime/Launcher.cs +++ b/Runtime/Launcher.cs @@ -222,6 +222,7 @@ internal static async UniTaskVoid TeardownLaunchAutopilotAsync(AutopilotState st state.settings = null; state.exitCode = exitCode; #if UNITY_EDITOR && UNITY_2020_3_OR_NEWER + EditorUtility.SetDirty(state); AssetDatabase.SaveAssetIfDirty(state); // Note: Sync with virtual players of MPPM package #endif diff --git a/Runtime/Settings/AutopilotState.cs b/Runtime/Settings/AutopilotState.cs index ed94e6c..9db93b9 100644 --- a/Runtime/Settings/AutopilotState.cs +++ b/Runtime/Settings/AutopilotState.cs @@ -47,6 +47,7 @@ public void Reset() settings = null; exitCode = ExitCode.Normally; #if UNITY_EDITOR && UNITY_2020_3_OR_NEWER + EditorUtility.SetDirty(this); AssetDatabase.SaveAssetIfDirty(this); // Note: Sync with virtual players of MPPM package #endif }