x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Sequence Player 'Play' Reset Bug

Whether 'Restore State' is set to true or false, telling the Sequence Player to 'Play' always resets once it ends.

This is occurring after converting my project from 4.14 to 4.15; it was working fine in 4.14. Not sure if this only happens with an existing player from 4.14 or if it happens with new ones created in 4.15 too (I will try to find reproduction steps later when I have time). I have read others are also having this issue.

Note that I am using the inherited Sequence Player in a blueprint class that derives from 'LevelSequenceActor'.

EDIT: This does not seem to be due to the 4.14 conversion; this is easily reproduced in a new 4.15 project with the following steps:

  • Create a 'Level Sequence'.

  • Add a 'Fade Track' to the sequence.

  • Create a keyframe at the start of the sequence with a value of 0.0 for 'Fade'.

  • Create a keyframe at the end of the sequence with a value of 1.0 for 'Fade'.

  • Save the sequence.

  • Create a new Blueprint class with the parent class as 'LevelSequenceActor'.

  • In the blueprint, under the 'General' section of the 'Details' pane, set the 'Level Sequence' field to the level sequence we created.

  • In the blueprint's Event Graph get the blueprint's 'Sequence Player' on 'BeginPlay' and call 'Play' on the sequence player.

  • Drag the blueprint into the level/map.

  • Press play on the map and observe it resetting the sequence to a play position of zero once it finishes fading, where the scene will be transparent again at the end (instead of black) no matter what 'Restore State' is set to on the blueprint.

Here is a link to a new 4.15 project that follows these reproduction steps - https://drive.google.com/file/d/0B5Hlx38HoC1geDNVVy1KenNGN1E/view?usp=sharing.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 05 '17 at 06:10 AM in Bug Reports

avatar image

Furinyx
214 7 11 23

avatar image Matt.Williams Mar 14 '17 at 10:15 PM

Hey Furinyx,

Can I ask what your intended functionality is? If it is fading out of a cinematic and back into gameplay, I'd highly suggest using separate fade in/fade out sequences and triggering the fade in at the end of the fade out or a frame before the end.

The other way is to manipulate the player camera's Gain Alpha Channel. When a cinematic begins, set your player camera gain alpha to 0, then create your cinematic with the fade to black. When the cinematic ends, you can trigger the gain alpha to fade from 0 to 1 in your blueprint.

Generally, we avoid using the level sequence actor as a parent class for a BP since we recently introduced Sequencer Components.

Let me know if any of that helps. If not, we can go from there. I suspect the behavior you were seeing in 4.14 was actually a bug. Since the fade track is not tied to a specific camera, it would become problematic if we let it persist after the sequence had completed.

-Matt W.

avatar image Furinyx Mar 15 '17 at 12:56 PM

Hi Matt

I use it for dynamic cinematic events in my project that might also blend with things such as fading the camera in/out on death/respawn and when the camera goes out of bounds. For those reasons, using separate fade in/out sequences means in a dynamic situation more than one could play or cause overlap (or start at different fade times in the case I want to stop one but continue on with the new fade from the fade percentage the last one was stopped at); I can setup a work-around to ensure one doesn't play over the other and to adjust accordingly, etc, but it is simpler and much tidier to use one sequence.

I do not believe it was a bug in 4.14 as it is also noted, in the following link, by Max.Chen that in 4.15 it has been corrected so that it does not restore by default, with the option of manually controlling this with the addition of 'Restore State' - https://answers.unrealengine.com/questions/553099/how-can-i-stop-a-level-sequence-from-resetting-at.html.

I chose sequences as they were the most recommended approach for fading scenes in UE4 (and the PlayerCameraManager's fade functionality does not affect widget rendering). I parented Level Sequence Actor as it appeared to be the main way of dynamically using sequences in 4.14 and I wanted custom functionality encapsulated in the owning Blueprint. As sequences still seem to be a work in progress, with Sequence Components being newly added to 4.15 for early adopters, I'll try a post-process or UI overlay approach for fading for now (if you can recommend something simpler/intended for what I desire, that would be appreciated).

I don't have any experience with cinematic content so forgive my ignorance but I don't understand the last part where a fade track optionally persisting would be problematic (unless you mean with the use of the new components; though, wouldn't that be controllable functionality from the components to achieve desired results anyway?).

Thanks for the information and suggestions.

avatar image Matt.Williams Mar 17 '17 at 08:12 PM

Hey Furinyx,

I'm going to suggest that the other issue at hand is different than yours. Your issue appears specific to the fade track. If I add a translating cube to your sequence and play it again the cube will remain at its end position.

I'm going to continue investigating this AND the other issue, but I'll be noting in the other thread that I may still need some examples from the other users who are seeing this with tracks other than the fade track.

I'll let you know when I get back to this issue as I have a few others that require my attention first.

Thank you for your patience.

-Matt W.

avatar image Furinyx Mar 17 '17 at 10:02 PM

Ah okay, I hadn't realised this was just with the fade track; that definitely would make it different as it then sounds like a fade track issue rather than a sequence/sequence player issue.

Will wait to hear back from you, thanks for your time.

avatar image Osok Sep 02 '17 at 02:18 PM

Is there a way to make keep state the default instead of restore state?

avatar image jimmyt1988 Jan 12 '19 at 01:24 AM

https://answers.unrealengine.com/questions/553099/how-can-i-stop-a-level-sequence-from-resetting-at.html?sort=oldest

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

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Furinyx,

I've entered UE-43313 for this issue. I've included some of your use cases. This functionality still may not change because of the impact it could have if your game becomes stuck faded to black.

-Matt W.

more ▼

answered Mar 24 '17 at 06:34 PM

avatar image Furinyx Mar 24 '17 at 07:11 PM

Great to hear, thanks. Still not following the issue of it remaining black as it should be as simple as telling it to set playback time to zero or using 'Restore State' to avoid that, if remaining black is not desired.

avatar image Matt.Williams Mar 27 '17 at 02:02 PM

If you return back to gameplay and want all objects in your sequence to remain in place, but you have a fade to black track, then the screen gets stuck on black. That's the problem.

avatar image Furinyx Mar 27 '17 at 03:16 PM

Ah ok, when everything is in the same sequence, that makes sense. I was only thinking it would be used in an independent sequence; I can understand why this is a problem then. Sorry, I haven't really used the sequence for much else so thank you for explaining that politely.

avatar image Matt.Williams Mar 29 '17 at 08:12 PM

Hey Furinyx,

Just a heads up, there were some fixes put in around the fade track based on this bug report, but it was not a bug as we had originally thought. If you right click in the fade track>Properties>When Finished and change it to Keep State, you should be able to get the functionality you're looking for. I had no idea the fade track defaulted to Reset State.

-Matt W.

avatar image Furinyx Mar 30 '17 at 02:04 AM

Hi Matt

That is great news.

When you say to right click in the fade track, is that within the Sequencer? I don't get a 'Properties' option when right-clicking the fade track in the Sequencer and can't see anything under the Sequencer options.

avatar image Matt.Williams Mar 30 '17 at 08:39 PM

You'll need to right-click the track in the timeline section. See below.

alt text

avatar image Furinyx Mar 31 '17 at 04:23 AM

Ah it wasn't doing anything for me when I tried that. Turns out if you right-click in the timeline then right-click on a track it doesn't do anything (I assume it deselects the track and doesn't re-select from right-clicking on it; made more confusing if you left-clicked the track beforehand as it still shows the selected orange effect after right-clicking a blank space in the timeline).

Thanks for that, it's back to working how I had it in 4.14.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question