Skip to content

Commit d443da3

Browse files
author
rdeioris
authored
Update Transactions_API.md
1 parent a455db4 commit d443da3

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎docs/Transactions_API.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,38 @@ ue.editor_undo()
3838
# redo the last one
3939
ue.editor_redo()
4040
```
41+
42+
Functions
43+
-
44+
45+
```py
46+
# begin a new transaction with the psecified description (returns the transaction id)
47+
transaction_id = unreal_engine.begin_transaction(description)
48+
49+
# cancel the current transaction
50+
unreal_engine.cancel_transaction()
51+
52+
# end the transaction (returns the next transaction id)
53+
tid = unreal_engine.end_transaction()
54+
55+
# returns True if we are currently into a transaction
56+
is_active = unreal_engine.is_transaction_active()
57+
58+
# get the current transaction name
59+
name = unreal_engine.get_transaction_name()
60+
61+
# redo the current transaction
62+
unreal_engine.redo_transaction()
63+
64+
# reset the current transaction
65+
unreal_engine.reset_transaction()
66+
67+
# get the list of transactions
68+
transactions = unreal_engine.transactions()
69+
70+
# undo (return True on success)
71+
success = unreal_engine.editor_undo()
72+
73+
# red (return True on success)
74+
success = unreal_engine.editor_redo()
75+
```

0 commit comments

Comments
 (0)