标记场景发生改变

   EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene());

原文地址:https://www.cnblogs.com/luxishi/p/7503989.html