PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

ChangeHistoryService

Show deprecated

ChangeHistoryService

Show deprecated

The ChangeHistoryService provides a way for plugins to undo and redo changes and to create waypoints when changes are made to the place.


Properties

Functions

Tuple

GetCanRedo ( )

Returns whether there are actions that can be redone, and, if there are, returns the last of them.

Tuple

GetCanUndo ( )

Returns whether there are actions that can be undone, and, if there are, returns the last of them.

void

Redo ( )

Executes the last action that was undone.

void

ResetWaypoints ( )

Clears the history, causing all undo/redo waypoints to be removed.

void

SetEnabled ( bool state )

Sets whether or not the ChangeHistoryService is enabled.

void

SetWaypoint ( string name )

Sets a new waypoint which can be used as an undo or redo point.

void

Undo ( )

Undos the last action taken, for which there exists a waypoint.

Events

RBXScriptSignal

OnRedo ( string waypoint )

Fired when the user reverses the undo command. Waypoint describes the type action that has been redone.

RBXScriptSignal

OnUndo ( string waypoint )

Fired when the user undoes an action in studio. Waypoint describes the type action that has been undone.