We use cookies on this site to enhance your user experience

ChangeHistoryService

ChangeHistoryService

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


Functions

Name Type Description
Tuple

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

Tuple

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

void

Executes the last action that was undone.

void

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

void

Sets whether or not the ChangeHistoryService is enabled.

void

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

void

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

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild

Events

Name Type Description

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

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

Inherited from Instance

AncestryChanged Changed ChildAdded ChildRemoved DescendantAdded DescendantRemoving