# Undo/Redo doesn't work after playing

**URL:** <https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946>\
**Category:** Community & Industry Discussion\
**Tags:** undo, unreal-engine, UE4, question\
**Created:** [July 13, 2016, 10:26pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946 "2016-07-13T22:26:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [July 13, 2016, 10:26pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/1 "2016-07-13T22:26:08Z")

</div>

After pressing the play button and stopping it you can’t CTRL+Z to undo anymore.

It is really annoying especially if you want to test something out.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [July 14, 2016, 3:47pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/2 "2016-07-14T15:47:19Z")

</div>

Hi MrGoatsy,

This was a bug originally reported and fixed for UE4.11 (UE-27056). I’ve verified this does return for a version of UE4.12, however, I tested it in UE4.12.5 and it is fixed again.

If you haven’t already, please update to UE4.12.5 and if the issue still occurs, please post some simple repro steps in a blank template project so that we can reproduce the issue on our end. For instance, these are the steps I followed in UE4.12.5 where I was not able to reproduce the bug:

1. Open a Blank Blueprint project with no starter content in UE4.12.5
2. Drag a generic box into the scene
3. Drag a generic sphere into the scene
4. Position the sphere on top of the box
5. PIE
6. exit PIE
7. Press Ctrl +Z  
RESULT: Last action before PIE is undone;

Thanks,

.

---

<div class="post-metadata">

**Author:** ![MatB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatB](https://forums.unrealengine.com/u/MatB)\
**Post date:** [July 30, 2016, 7:01am UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/3 "2016-07-30T07:01:37Z")

</div>

I’m getting this bug as well in 4.12.5. I had to come online tonight and check and see if anyone else was getting this issue.

Repro steps:

1. Move an object, SM or even edit a material inst. and then undo works fine
2. Hit play to test level layout or AI
3. Move an item or edit level undo doesn’t work.

I was able to repro this after quiting out and engine and re-logging in it works as long as I don’t hit play.

-Mat

---

<div class="post-metadata">

**Author:** ![MatB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatB](https://forums.unrealengine.com/u/MatB)\
**Post date:** [July 30, 2016, 9:07am UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/4 "2016-07-30T09:07:21Z")

</div>

Note: The Undo bug only happens if you play “Simulate” and then return to the browser.

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [July 31, 2016, 11:14pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/5 "2016-07-31T23:14:11Z")

</div>

The bug still occurs in UE4.12.5.

---

<div class="post-metadata">

**Author:** ![MatB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatB](https://forums.unrealengine.com/u/MatB)\
**Post date:** [July 31, 2016, 11:21pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/6 "2016-07-31T23:21:59Z")

</div>

Yep, the work around just to let you know without restarting is to do a “play” session with out “alt+s” or simulate play. That will get undo to work again for the level editor. I will test this out for blueprints tonight.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [August 2, 2016, 5:12pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/7 "2016-08-02T17:12:50Z")

</div>

I am still unable to reproduce the reported issue following these steps (Please be specific and refer to corrections or additions to these specific steps to ensure we are all on the same page):

1. Open a blank project with no starter content in UE 4.12.5
2. Drag a cube from the Modes panel into the viewport
3. Move cube in any direction.
4. **Play in Editor: Simulate** by either selecting this with the cursor:
5. 

![101094-play.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/4/e8400819b6d2e9fe3e3f6d36e043d66e4cf7739f.png)

1. OR Simulate by pressing Alt + S
2. Press Stop as shown (Ctrl + Z will not work while Simulation is running):
3. 

![101096-stop.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/4/4e42da2d36a0034d53b7c4448b784e3939efd33b.png)

1. Press Ctrl + Z to undo last action(s) before running **Play in Editor: Simulate**

RESULT: Ctrl + Z performs undo as expected. 4/4 Tests

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [August 2, 2016, 6:33pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/8 "2016-08-02T18:33:54Z")

</div>

I don’t want to have to simulate and then possess everytime I want to test it, I just want to play in the selected viewport and then if I don’t like what I changed change it back with CTRL+Z.

Also, please don’t mark this as an answer, I will mark it as an answer once the issue has been resolved.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [August 2, 2016, 7:51pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/9 "2016-08-02T19:51:15Z")

</div>

\*We mark answers resolved when we cannot reproduce a reported issue for tracking purposes. If you disagree you can simply respond to reopen the issue.

We’re willing to keep working with you until the issue being reported is fully understood. Hence, please provide concise repro steps in the format listed above.

If your steps are exactly the same and you still cannot undo, there may be a hardware issue like, are you on a Mac, for instance?

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [August 2, 2016, 8:18pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/10 "2016-08-02T20:18:19Z")

</div>

I am on Windows 10.

How I replicate this issue:

- Put mesh in editor or put node in blueprint
- Press play(not simulate)
- Press stop
- Press CTRL+Z
- A red outline message in the right bottom corner where it normally says `Undo: Placing node` for example now only says `Undo:`.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [August 4, 2016, 2:59pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/11 "2016-08-04T14:59:10Z")

</div>

Hi MrGoatsy,

I have still not been able to replicate this on a Windows 10 machine so I will need more information:

1. What version of Play in Editor or you using to test this (ie Selected Viewport,Mobile Preview, New Editor Window, or Stand Alone Game? )
2. Can you reproduce this in a completely blank Blueprint template project with no work being done in any Blueprint including the level blueprint
3. Are you pressing stop button or Escape to quit testing?

Please respond with this information -thanks!

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [August 5, 2016, 1:15pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/12 "2016-08-05T13:15:50Z")

</div>

1. I am pressing the Selected viewport play.
2. It occurs randomly, sometimes I can CTRL+Z sometimes I can’t, so no, I can reproduce it.
3. Escape

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [August 5, 2016, 7:33pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/13 "2016-08-05T19:33:26Z")

</div>

If the issue is sporadic and we can not reproduce it here then, unfortunately, we cannot address the issue. However, if you can find/create a project where this is happening consistently, you can send a link to a zipped version of the project to me in a private message on our .

I suspect it’s a combination of blueprints and mesh placement, which would be a bug we need to address.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [August 10, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/14 "2016-08-10T19:23:33Z")

</div>

Hi MrGoatsy,

I am closing this post for tracking purposes, however, if you can provide a project where this is consistently reproducible, we will open a bug report for this issue. -Thanks.

---

<div class="post-metadata">

**Author:** ![HomerRamone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HomerRamone](https://forums.unrealengine.com/u/HomerRamone)\
**Post date:** [November 11, 2016, 5:02pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/15 "2016-11-11T17:02:59Z")

</div>

You need to have Run Dedicated Server checked to reproduce this.

It looks like its because

```
GUnrealEd->Trans->SetUndoBarrier();

```

is called in **CreatePIEGameInstance**. This can be called multiple times if you have Run Dedicated Server checked.  
However **EndPlay** is only ever called once and it is this which calls **RemoveUndoBarrier**.

Removing the **SetUndoBarrier** call from **CreatePIEGameInstance** and putting it before the section of code in **PlayInEditor** that calls **CreatePIEGameInstance** seems to resolve it.

---

<div class="post-metadata">

**Author:** ![DeisukeAramaki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deisukearamaki/32/595844_2.png) [@DeisukeAramaki](https://forums.unrealengine.com/u/DeisukeAramaki)\
**Post date:** [February 7, 2022, 5:32pm UTC](https://forums.unrealengine.com/t/undo-redo-doesnt-work-after-playing/363946/16 "2022-02-07T17:32:41Z")

</div>

I have the same problem un UE5 Early Access - Undo shortcut not working on a Mac.  
I solved it by adding additional keyboard shortcut in the preferences for undo CTRL+Z (on top of existing COMMAND+Z)
