public static void Execute(this MonoBehaviour monoBehaviour, Action action, string actionName) { Undo.RecordObject(monoBehaviour, actionName); monoBehaviour.Execute(action); }