EPG
(EPG)
November 15, 2019, 5:58pm
1
I would like to load all my level sequences during gameplay in C++ and do some stuff with all the animations they contain.
I tried several ways and I keep running into errors like this:
UMovieSceneSequence* movie= Cast<UMovieSceneSequence>(assetData.GetAsset());
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol “__declspec(dllimport) private: static class UClass * __cdecl UMovieSceneSequence::GetPrivateStaticClass(void)” (_imp ?GetPrivateStaticClass@UMovieSceneSequence@@CAPEAVUClass @@XZ ) referenced in function “public: void __cdecl AnimationPlayer::initialize(class Px::String const &)” (?initialize@AnimationPlayer@@QEAAXAEBVString @Px@@@Z ) SWP_VR D:\svn\SWP_VR\Intermediate\ProjectFiles\Module.SWP_VR.1_of_3.cpp.obj 1
The same happens for ULevelSequence and also when I write this:
AssetRegistryModule.Get().GetAssetsByClass(ULevelSequence::StaticClass()->GetFName(), AssetData);
Any suggestions? I would be grateful for any ideas!
Did you add #include “MovieSceneSequence.h” in the header file?
Error LNK2019 usually refers to a situation where there’s a function declaration, but no definition.
EPG
(EPG)
November 18, 2019, 8:52am
3
Yes, I have this: #include "Runtime/MovieScene/Public/MovieSceneSequence.h
EPG
(EPG)
November 19, 2019, 11:52am
4
I managed to solve it by modifying the build file:
PublicDependencyModuleNames.AddRange(new string] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “LevelSequence”, “MovieScene” });
Tutorial en español.
Github source code.
Discussion in another entry I made.
Unreal Engine Version: 4.27.2-18319896+++UE4+Release-4.27
[Screenshot_6]
Does anyone know how to include ALevelSequenceActor in a .CPP file, I did not enter the form, it shows me an error…
The issue is that I want to handle the levelsequence from C++ but I can’t find a way to include the library.
I mean I include it like this.
[Screenshot_5]
code:
#include <LevelSequence/Public/LevelSequenceActor.h>
and if i want to do this
Error in ALevelSequenceActor::StaticClass().
[Screenshot_12] …