Linker error (LNK2019) when trying to play a Level Sequence

I’m trying to play a level sequence using this piece of code:

SequenceActor->SequencePlayer->Play();

But, when I try to build, it fails and shows this message:

error LNK2019: unresolved external symbol “__declspec(dllimport) public: void __cdecl UMovieSceneSequencePlayer::Play(void)” (_imp?Play@UMovieSceneSequencePlayer@@QEAAXXZ) referenced in function “public: void __cdecl ACutscene::Play(void)” (?Play@ACutscene@@QEAAXXZ)

My Build.cs contains this line to configure the public modules:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG", "Slate", "SlateCore", "LevelSequence" });

As you can see, it already have the “LevelSequence” module in the list.

What should I do?

1 Like

Try to include MovieScene too, maybe there is trouble with module dependencies.

Following the suggestion from c4tnt, I added “MovieScene” into the PublicDependencyModuleNames list and it fixed the problem.

Yep, it worked. Thanx.

Same error in UE_4.25 and same fix. Adding MovieScene as a dependency.

I had the same error when I wanted to use the sequencer from C++ and the solution was what they said here, add “MovieScene” to the dependencies apart from LevelSequence
I leave screenshots.



1 Like

YourGameName.Build.cs - PublicDependencyModuleNames.AddRange