Navigation
API > API/Plugins > API/Plugins/ToolsetRegistry > API/Plugins/ToolsetRegistry/UToolsetLibrary
Description
Returns the number of entries currently undoable on the global undo stack (queue length minus undo count, i.e. entries above the redo split).
Snapshotting this around a BeginTransaction / EndTransaction pair lets a caller tell whether the pair actually committed a record: a transient transaction (no UObject changes) is silently dropped by UTransBuffer::End, leaving the count unchanged.
| Name | GetActiveUndoCount |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ToolsetRegistry/Source/ToolsetRegistry/Public/ToolsetRegistry/ToolsetLibrary.h |
| Include Path | #include "ToolsetRegistry/ToolsetLibrary.h" |
| Source | /Engine/Plugins/Experimental/ToolsetRegistry/Source/ToolsetRegistry/Private/ToolsetRegistry/ToolsetLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Toolset Library")
static int32 GetActiveUndoCount()
The active undo count, or 0 when there is no editor transaction buffer available (e.g. no GEditor).