Skip to content

CreatorHistory

Inherits Instance

CreatorHistory is a class that manages history (undo-redo) of this game instance. This class is only available in the creator.

Static Class

This object is a static class. It can be accessed like this: History.

Additionally, it cannot be created in the creator menu or with Instance.New().

Not newable

This object cannot be created by scripts using Instance.New().

Methods

NewAction → nil

Parameters: title [ string ]

Creates new action

AddDoCallback → nil

Parameters: callback [ `` ]

Add do callback

AddUndoCallback → nil

Parameters: callback [ `` ]

Add undo callback

CommitAction → nil

Parameters: ``

Commit the current action