# Level Sequence Always Restore States

**URL:** <https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, bug-report, sequence, question\
**Created:** [July 18, 2017, 9:29am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577 "2017-07-18T09:29:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhoenixThrough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhoenixThrough](https://forums.unrealengine.com/u/PhoenixThrough)\
**Post date:** [July 18, 2017, 9:29am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/1 "2017-07-18T09:29:12Z")

</div>

Hi there,  
I’m using a level sequence in my project and it always snaps back on sequence end, no matter I set “restore state” to true or false.

Step to reproduce:

1. Create a clean project
2. Drag a cube actor into level
3. Add a level sequence with some simple location update

 ![192285-sequencer.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/9/599e267dd9fd45b1e62317fc9c3a771bce5644b3.png)

1. Play in level BP

 ![192286-levelbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/c/ebc24c3647c57eb0c161a1a13c607c75a1366c29.png)

The “Restore State” is set to false and the playback position may stay at the end of sequence, however those actors in level will always snap back to their original positions.

---

<div class="post-metadata">

**Author:** ![Max.Chen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max.chen/32/1194502_2.png) [@Max.Chen](https://forums.unrealengine.com/u/Max.Chen)\
**Post date:** [July 19, 2017, 4:48am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/2 "2017-07-19T04:48:47Z")

</div>

You will actually need to set the “When Finished” property on each of the sections. Note, however, there is a bug in the Animation track where it snaps to the default pose instead of keeping the pose if you set it to “Keep State”. This has been fixed in 4.17, so you might want to try out the 4.17 preview release, which is out now.

![202335-sequencer_whenfinished.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/2/4c2d89cdd19128772817be153ac65d13bf13bafe.jpeg)

---

<div class="post-metadata">

**Author:** ![dbulla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dbulla](https://forums.unrealengine.com/u/dbulla)\
**Post date:** [August 4, 2017, 6:59pm UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/3 "2017-08-04T18:59:57Z")

</div>

Hi Max - I’m seeing this same issue as the original issue which isn’t resolved with your solution. We’re not using an animation, only a simple Location|Transform track. Is there an option to “Keep State” for the Transform track?

---

<div class="post-metadata">

**Author:** ![Brendan.Walker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brendan.Walker](https://forums.unrealengine.com/u/Brendan.Walker)\
**Post date:** [August 4, 2017, 8:21pm UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/4 "2017-08-04T20:21:54Z")

</div>

Hi Max - Thanks for posting this solution. Do you happen to know if the fix in 4.17 is isolated to a particular set of change lists in P4 that we could integrate into our local copy 4.16. Our level designers are hitting this issue. If the change was relatively isolated we’d love to grab it if possible.

---

<div class="post-metadata">

**Author:** ![Max.Chen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max.chen/32/1194502_2.png) [@Max.Chen](https://forums.unrealengine.com/u/Max.Chen)\
**Post date:** [August 6, 2017, 5:28am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/5 "2017-08-06T05:28:32Z")

</div>

Unfortunately, the change comes along with a bunch of other changes to enable general track blending in 4.17.

However, you might be able to add this one line which should expose that property and might be sufficient. Look at MovieSceneSkeletalAnimationSection.cpp

In the constructor, add this:

EvalOptions.EnableAndSetCompletionMode(EMovieSceneCompletionMode::RestoreState);

---

<div class="post-metadata">

**Author:** ![Max.Chen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max.chen/32/1194502_2.png) [@Max.Chen](https://forums.unrealengine.com/u/Max.Chen)\
**Post date:** [August 6, 2017, 5:29am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/6 "2017-08-06T05:29:23Z")

</div>

Are you on 4.16? If you are, that option should be exposed for transform tracks.

---

<div class="post-metadata">

**Author:** ![paradoc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paradoc](https://forums.unrealengine.com/u/paradoc)\
**Post date:** [September 28, 2017, 3:43am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/7 "2017-09-28T03:43:03Z")

</div>

@dbulla took me a minute to find this too. just right click anywhere in section where your track keys are located (but not on a key). the options will appear for keep/restore state

---

<div class="post-metadata">

**Author:** ![huulong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@huulong](https://forums.unrealengine.com/u/huulong)\
**Post date:** [May 18, 2018, 7:57pm UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/8 "2018-05-18T19:57:38Z")

</div>

As of UE4.19, default can be set with in DefaultEngine.ini (or maybe another .ini) [/Script/LevelSequence.LevelSequence] DefaultCompletionMode. Once I confirm this I’ll post the full answer here or in duplicate [How can I stop a Level Sequence from resetting at the end ? - Cinematics & Media - Epic Developer Community Forums](https://answers.unrealengine.com/questions/553099/how-can-i-stop-a-level-sequence-from-resetting-at.html)

---

<div class="post-metadata">

**Author:** ![jimmyt1988](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jimmyt1988](https://forums.unrealengine.com/u/jimmyt1988)\
**Post date:** [January 12, 2019, 1:21am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/9 "2019-01-12T01:21:47Z")

</div>

> **[How can I stop a Level Sequence from resetting at the end ?](https://forums.unrealengine.com/questions/553099/how-can-i-stop-a-level-sequence-from-resetting-at.html)**
>
> I’ll start off by stating that I am very new to UE4. I am working on an Archviz have some lighting that I would like to have dim and change color when the player enters a trigger box and presses the fire button. And then get brighter again on...

I answered it here. But you need to split the blueprint sequence player settings and set the option in there

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [January 31, 2019, 4:19am UTC](https://forums.unrealengine.com/t/level-sequence-always-restore-states/397577/10 "2019-01-31T04:19:21Z")

</div>

I tested huulong’s solution in 4.21 to change the default to Keep State, and it works.

Add this to DefaultEngine.ini:

```
[/Script/LevelSequence.LevelSequence]
DefaultCompletionMode=KeepState
```
