Cocos Creator
Editor.Undo
Methods
Editor.Undo.undo ()
Editor.Undo.redo ()
Editor.Undo.add (id, info)
id
stringinfo
object
Editor.Undo.commit ()
Editor.Undo.cancel ()
Editor.Undo.collapseTo (index)
index
number
Editor.Undo.save ()
Editor.Undo.clear ()
Editor.Undo.reset ()
Editor.Undo.dirty ()
Editor.Undo.setCurrentDescription (desc)
desc
string
Editor.Undo.register (id, cmd)
id
stringcmd
Editor.Undo.Command