Unresolved externals errors on custom level sequencer class

I am trying to create a custom level sequence player class, with some minor modifications so I can automate a process that allows me to “loop” camera cuts. The problem is that even just making a class based on the level sequence player gets me a giant list of unresolved externals errors. How do I solve this? I have already included the LevelSequence module in my build.cs file, without any success.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::BeginDestroy(void)" (?BeginDestroy@UMovieSceneSequencePlayer@@MEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::BeginDestroy(void)" (?BeginDestroy@UMovieSceneSequencePlayer@@MEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual void __cdecl UMovieSceneSequencePlayer::BeginPlay(void)" (?BeginPlay@UMovieSceneSequencePlayer@@UEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual void __cdecl UMovieSceneSequencePlayer::BeginPlay(void)" (?BeginPlay@UMovieSceneSequencePlayer@@UEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual class IMovieSceneBindingOverridesInterface const * __cdecl UMovieSceneSequencePlayer::GetBindingOverrides(void)const " (?GetBindingOverrides@UMovieSceneSequencePlayer@@MEBAPEBVIMovieSceneBindingOverridesInterface@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual class IMovieSceneBindingOverridesInterface const * __cdecl UMovieSceneSequencePlayer::GetBindingOverrides(void)const " (?GetBindingOverrides@UMovieSceneSequencePlayer@@MEBAPEBVIMovieSceneBindingOverridesInterface@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual struct FMovieSceneRootEvaluationTemplateInstance & __cdecl UMovieSceneSequencePlayer::GetEvaluationTemplate(void)" (?GetEvaluationTemplate@UMovieSceneSequencePlayer@@MEAAAEAUFMovieSceneRootEvaluationTemplateInstance@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual struct FMovieSceneRootEvaluationTemplateInstance & __cdecl UMovieSceneSequencePlayer::GetEvaluationTemplate(void)" (?GetEvaluationTemplate@UMovieSceneSequencePlayer@@MEAAAEAUFMovieSceneRootEvaluationTemplateInstance@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual enum EMovieScenePlayerStatus::Type __cdecl UMovieSceneSequencePlayer::GetPlaybackStatus(void)const " (?GetPlaybackStatus@UMovieSceneSequencePlayer@@MEBA?AW4Type@EMovieScenePlayerStatus@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual enum EMovieScenePlayerStatus::Type __cdecl UMovieSceneSequencePlayer::GetPlaybackStatus(void)const " (?GetPlaybackStatus@UMovieSceneSequencePlayer@@MEBA?AW4Type@EMovieScenePlayerStatus@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual class FMovieSceneSpawnRegister & __cdecl UMovieSceneSequencePlayer::GetSpawnRegister(void)" (?GetSpawnRegister@UMovieSceneSequencePlayer@@MEAAAEAVFMovieSceneSpawnRegister@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual class FMovieSceneSpawnRegister & __cdecl UMovieSceneSequencePlayer::GetSpawnRegister(void)" (?GetSpawnRegister@UMovieSceneSequencePlayer@@MEAAAEAVFMovieSceneSpawnRegister@@XZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::GetViewportSettings(class TMap<class FViewportClient *,struct EMovieSceneViewportParams,class FDefaultSetAllocator,struct TDefaultMapHashableKeyFuncs<class FViewportClient *,struct EMovieSceneViewportParams,0> > &)const " (?GetViewportSettings@UMovieSceneSequencePlayer@@MEBAXAEAV?$TMap@PEAVFViewportClient@@UEMovieSceneViewportParams@@VFDefaultSetAllocator@@U?$TDefaultMapHashableKeyFuncs@PEAVFViewportClient@@UEMovieSceneViewportParams@@$0A@@@@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::GetViewportSettings(class TMap<class FViewportClient *,struct EMovieSceneViewportParams,class FDefaultSetAllocator,struct TDefaultMapHashableKeyFuncs<class FViewportClient *,struct EMovieSceneViewportParams,0> > &)const " (?GetViewportSettings@UMovieSceneSequencePlayer@@MEBAXAEAV?$TMap@PEAVFViewportClient@@UEMovieSceneViewportParams@@VFDefaultSetAllocator@@U?$TDefaultMapHashableKeyFuncs@PEAVFViewportClient@@UEMovieSceneViewportParams@@$0A@@@@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::OnLooped(void)" (?OnLooped@UMovieSceneSequencePlayer@@MEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::OnLooped(void)" (?OnLooped@UMovieSceneSequencePlayer@@MEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::OnPaused(void)" (?OnPaused@UMovieSceneSequencePlayer@@MEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::OnPaused(void)" (?OnPaused@UMovieSceneSequencePlayer@@MEAAXXZ)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::ResolveBoundObjects(struct FGuid const &,struct FMovieSceneSequenceID,class UMovieSceneSequence &,class UObject *,class TArray<class UObject *,class TInlineAllocator<1,class FDefaultAllocator> > &)const " (?ResolveBoundObjects@UMovieSceneSequencePlayer@@MEBAXAEBUFGuid@@UFMovieSceneSequenceID@@AEAVUMovieSceneSequence@@PEAVUObject@@AEAV?$TArray@PEAVUObject@@V?$TInlineAllocator@$00VFDefaultAllocator@@@@@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::ResolveBoundObjects(struct FGuid const &,struct FMovieSceneSequenceID,class UMovieSceneSequence &,class UObject *,class TArray<class UObject *,class TInlineAllocator<1,class FDefaultAllocator> > &)const " (?ResolveBoundObjects@UMovieSceneSequencePlayer@@MEBAXAEBUFGuid@@UFMovieSceneSequenceID@@AEAVUMovieSceneSequence@@PEAVUObject@@AEAV?$TArray@PEAVUObject@@V?$TInlineAllocator@$00VFDefaultAllocator@@@@@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::SetPlaybackStatus(enum EMovieScenePlayerStatus::Type)" (?SetPlaybackStatus@UMovieSceneSequencePlayer@@MEAAXW4Type@EMovieScenePlayerStatus@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::SetPlaybackStatus(enum EMovieScenePlayerStatus::Type)" (?SetPlaybackStatus@UMovieSceneSequencePlayer@@MEAAXW4Type@EMovieScenePlayerStatus@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::SetViewportSettings(class TMap<class FViewportClient *,struct EMovieSceneViewportParams,class FDefaultSetAllocator,struct TDefaultMapHashableKeyFuncs<class FViewportClient *,struct EMovieSceneViewportParams,0> > const &)" (?SetViewportSettings@UMovieSceneSequencePlayer@@MEAAXAEBV?$TMap@PEAVFViewportClient@@UEMovieSceneViewportParams@@VFDefaultSetAllocator@@U?$TDefaultMapHashableKeyFuncs@PEAVFViewportClient@@UEMovieSceneViewportParams@@$0A@@@@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.cpp.obj	1	
Error	LNK2001	unresolved external symbol "protected: virtual void __cdecl UMovieSceneSequencePlayer::SetViewportSettings(class TMap<class FViewportClient *,struct EMovieSceneViewportParams,class FDefaultSetAllocator,struct TDefaultMapHashableKeyFuncs<class FViewportClient *,struct EMovieSceneViewportParams,0> > const &)" (?SetViewportSettings@UMovieSceneSequencePlayer@@MEAAXAEBV?$TMap@PEAVFViewportClient@@UEMovieSceneViewportParams@@VFDefaultSetAllocator@@U?$TDefaultMapHashableKeyFuncs@PEAVFViewportClient@@UEMovieSceneViewportParams@@$0A@@@@@@Z)	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\CustomLevelSequencePlayer.gen.cpp.obj	1	
Error	LNK1120	12 unresolved externals	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Binaries\Win64\UE4Editor-AIResearchProject.dll	1	
Error		Failed to produce item: D:\Game Development\Unreal 4\Projects\AIResearchProject\Binaries\Win64\UE4Editor-AIResearchProject.dll	AIResearchProject	D:\Game Development\Unreal 4\Projects\AIResearchProject\Intermediate\ProjectFiles\ERROR	1	
Error	MSB3075	The command ""D:\Game Development\Unreal 4\Source\UnrealEngine-4.18\Engine\Build\BatchFiles\Build.bat" AIResearchProjectEditor Win64 Development "D:\Game Development\Unreal 4\Projects\AIResearchProject\AIResearchProject.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.	AIResearchProject	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets	41

Try adding it to PublicDependencyModuleNames. See This link for more info

I had:

ULevelSequencePlayer* SequencePlayer = NewObject<ULevelSequencePlayer>();
SequencePlayer->Play();

which gave me an unresolved external error on compile, despite ULevelSequencePlayer being a recognized class.

I went to the API page for the Play() function and tried adding the include listed there to my .cpp file. That didn’t work.

What did work was adding “MovieScene” to my private dependency modules in the build.cs file. After that, unresolved external error went away.