# Editor Utility Widget - Undo Transaction

**URL:** <https://forums.unrealengine.com/t/editor-utility-widget-undo-transaction/145636>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [June 12, 2020, 2:27am UTC](https://forums.unrealengine.com/t/editor-utility-widget-undo-transaction/145636 "2020-06-12T02:27:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_06ef27d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06ef27d1](https://forums.unrealengine.com/u/anonymous_user_06ef27d1)\
**Post date:** [June 12, 2020, 2:27am UTC](https://forums.unrealengine.com/t/editor-utility-widget-undo-transaction/145636/1 "2020-06-12T02:27:13Z")

</div>

I’m trying to setup undo for a list of objects selected in the world. The transaction object only seems to store the last element in the array. Is there a way to create multiple instances of transact object? Or a way to wrap the entire block of commands so I can undo the whole thing? I also tried CreateTransaction with out much luck. Hoping for some insight.

 ![UtilityWidget_Undo.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/d/cd61399edd31ab0bab537bf0ce932b6987293703.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06ef27d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06ef27d1](https://forums.unrealengine.com/u/anonymous_user_06ef27d1)\
**Post date:** [June 12, 2020, 2:48am UTC](https://forums.unrealengine.com/t/editor-utility-widget-undo-transaction/145636/2 "2020-06-12T02:48:50Z")

</div>

Oh, I see. I just begin the transaction inside the for loop. 🙂

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [December 22, 2023, 10:36pm UTC](https://forums.unrealengine.com/t/editor-utility-widget-undo-transaction/145636/3 "2023-12-22T22:36:23Z")

</div>

that doesnt quite work… makes me undo 50x if i select 50 objects. I would like to undo one time to undo the action for every object i had selected. How would that be done?

---

<div class="post-metadata">

**Author:** ![luaneseniv](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luaneseniv/32/702803_2.png) [@luaneseniv](https://forums.unrealengine.com/u/luaneseniv)\
**Post date:** [September 20, 2024, 4:54am UTC](https://forums.unrealengine.com/t/editor-utility-widget-undo-transaction/145636/5 "2024-09-20T04:54:15Z")

</div>

Did you try putting the “End transaction” node at the end of the loop → “Completed”?
