コード例 #1
0
 public RenderingGraphSurface(IVisjectSurfaceOwner owner, Action onSave, FlaxEditor.Undo undo = null, SurfaceStyle style = null)
     : base(owner, onSave, undo, style, GetGroupArchetypes())
 {
 }
コード例 #2
0
ファイル: UndoBlock.cs プロジェクト: djlw78/FlaxAPI
 /// <summary>
 ///     Creates new undo object for recording actions with using pattern.
 /// </summary>
 /// <param name="undo">The undo/redo object.</param>
 /// <param name="snapshotInstance">Instance of an object to record.</param>
 /// <param name="actionString">Name of action to be displayed in undo stack.</param>
 public UndoBlock(Undo undo, object snapshotInstance, string actionString)
 {
     SnapshotUndoInternal = snapshotInstance;
     Undo = undo;
     Undo.RecordBegin(SnapshotUndoInternal, actionString);
 }