文档

Unity Engine

Unity Engine

UndoBeginRecordGraph(string)

Signals the beginning of an undoable operation.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void UndoBeginRecordGraph(string actionName)

Parameters

actionName

The name of the operation, which is displayed in the undo menu.

Remarks

Call this before you trigger a sequence of graph modification methods to record those operations to the undo stack. Call Graph.UndoEndRecordGraph after the sequence to signal that the operation is complete.
Throws
InvalidOperationException
if there is no undo operation currently registered to the Graph.