Version: 2022.2

Undo.FlushUndoRecordObjects

切换到手册
public static void FlushUndoRecordObjects ();

描述

Ensure objects recorded using RecordObject or RecordObjects are registered as an undoable action. In most cases there is no reason to invoke FlushUndoRecordObjects since it's automatically done right after mouse-up and certain other events that conventionally marks the end of an action.