How the cinematics or Level sequence player work in Unreal Engine 5.1


This week I was having an issue trying to play a cinematic at the end of the level one or when the player interacts with an object on the level. I did research on the Unreal engine Documentation, I also looked many videos on YouTube, I read in different websites trying to find a solution but the issue that I was having is that I didn’t know what exactly I needed to include to play a cinematic.

This information was not clear for me until I started trying to connect every possible combination to make it work. At the end I found that you have to include these modules on the Build.cs "LevelSequence", "MovieScene". Whit this step done then you have to include these libraries inside your project:

#include "LevelSequencePlayer.h"

#include "LevelSequenceActor.h"

#include "LevelSequence.h"

#include "MovieSceneSequencePlayer.h"

#include "MovieSceneSequencePlaybackSettings.h"

With this step done now you can jump into the cpp file there you have to create a Level Sequence Actor. Also, you need to create a Level sequence Player, then a Level Sequence to find the respective asset, then you have to use the Movie Scene Playback Settings to handle all the settings of the respective cinematic and finally you include a Level Sequence Camera Settings.

Now you can check if the level sequence is true then we want to create a level sequence player using the world the level sequence, the playback settings and the level sequence actor.

Then we initialize the level sequence, then we use the world and the camera settings.

And finally, you are going to be able to play the cinematic.

This is the only way that I was able to make it work.

Author: Carlos Castro

Leave a comment

Log in with itch.io to leave a comment.