Cant access to LevelSequence.h!

Hi.

i include :

#include “Runtime/LevelSequence/Public/LevelSequence.h”

#include “Runtime/LevelSequence/Public/LevelSequencePlayer.h”

but I can access none of them function or variables (members) from my class.

anyone had same problem?

Hey AAriyAA,

Would you mind sending a screenshot of the .h and .cpp you’re using the includes in?

for sure.
I didn’t screen from irrelevant parts to save your time.
if you see those part arent in the image is relevant, let me know screenshot those too.

.CPP :

.h :

282660-adgagsasg.jpg

Thx for replay.

Hey AAriyAA, yeah would you mind sending me the rest of your .cpp so i can see exactly how you’re trying to access the functions/variables? Also, what engine version are you using for the project?

Hey AAriyAA,

try this:

  1. Open up your project in Visual Studio

  2. In Visual Studio, find your ShootEmUp game folder and then locate “shootemup.build.cs”

  3. Inside of “shootemup.buld.cs” find the line with "PublicDependencyModuleNames.AddRange(new string[] { } );

  4. in between the curly brackets, add “LevelSequence”.

  5. Try to compile and then go back and see if you have access to the variables now.

Here’s a picture to help you out. Let me know how it goes and if you need more help.

2 Likes

I already add “LevelSequence” without this project won’t be compiled.

but yet I couldn’t access to functions of LevelSequence.h and LevelSequencePlayer.h, for example, I need access to CreateLevelSequencePlayer() but I can’t.

1 Like

Thx a lot for your effort and time.

Its worked. it’s finally compiled and played.

how did you find the answer? what was the problem? and popup IntelliSense window doesn’t work for you too?

and can you make your comment an answer so I can choose it as Correct answer?

Thx again for your help time and effort.

Okay AAriyAA,

might have found a fix for you. Try this:

  1. comment out these lines from you .h and .cpp

.h:

.cpp:

  1. add into your build.cs public modules: “MovieScene”

  2. compile (with those lines still commented out). This will enable the module to get compiled, allowing it to be used.

4)add the includes into your .cpp like so:

5)Uncomment the lines and try this code in your BeginPlay. Then, ignore the intellisense warnings and try compiling again.