Skip to content

Commit 1b6d251

Browse files
author
rdeioris
authored
Update Transactions_API.md
1 parent d9679d6 commit 1b6d251

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎docs/Transactions_API.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ It is highly suggested to execute the commands with the "Undo History" panel ope
1414
from unreal_engine.classes import Actor, Character
1515
import unreal_engine as ue
1616

17+
# get the editor world
1718
world = ue.get_editor_world()
1819

20+
# begin a new transaction (can be reverted/reapplied)
1921
ue.begin_transaction('My first transaction')
2022
actor1 = world.actor_spawn(Actor)
2123
actor2 = world.actor_spawn(Actor)
2224
actor3 = world.actor_spawn(Actor)
2325
ue.end_transaction()
2426

27+
# begin a new transaction (can be reverted/reapplied)
2528
ue.begin_transaction('My second transaction')
2629
character1 = world.actor_spawn(Character)
2730
character2 = world.actor_spawn(Character)

0 commit comments

Comments
 (0)