UKismetSystemLibrary::EndTransaction
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintCallable
Description
Attempts to end the current undo transaction. Only actually closes the transaction if its action counter is 1. Editor-only.
Caveats & Gotchas
- • If BeginTransaction was called multiple times (nested), this only decrements the counter — the transaction stays open until the counter reaches 1 and this is called a final time.
- • Returns -1 on failure (e.g. no active transaction); a return value of 1 confirms the transaction was actually closed.
- • Only available in the editor.
Signature
static int32 EndTransaction() Return Type
int32 Example
Close a transaction opened with BeginTransaction C++
int32 Result = UKismetSystemLibrary::EndTransaction();
if (Result != 1)
{
UE_LOG(LogTemp, Warning, TEXT("Transaction did not close as expected: %d"), Result);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?