x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Error returning a level sequencer player variable

I am trying to create a level sequencer player in c++ according to the API reference here:

https://docs.unrealengine.com/latest/INT/API/Runtime/LevelSequence/ULevelSequencePlayer/CreateLevelSequencePlayer/index.html

But I am getting an error that this function must return a ULevelSequencePlayer . Need assistance on how to call this function and properly create a level sequence player . Much thanks.

EDIT:: so I managed to run it but im getting this error : Error MyPlayerController.cpp.obj : error LNK2019: unresolved external symbol "public: static class ULevelSequencePlayer __cdecl AMyPlayerController::CreateLevelSequencePlayer(class UObject ,class ULevelSequence *,struct FMovieSceneSequencePlaybackSettings)" (?CreateLevelSequencePlayer@AMyPlayerController@@SAPEAVULevelSequencePlay er@@PEAVUObject@@PEAVULevelSequence@@UFMovieSceneSequencePlaybackSettings@@@Z) referenced in function "public: void __cdecl AMyPlayerController::CallTimer(void)" (?CallTimer@AMyPlayerController@@QEAAXXZ)

Product Version: UE 4.15
Tags:
more ▼

asked Mar 13 '17 at 07:33 AM in C++ Programming

avatar image

wickedknock
14 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

As it was suggested here:

https://answers.unrealengine.com/questions/547012/is-there-a-way-to-trigger-a-level-sequence-in-c.html

you need to add MovieScene and LevelSequence to PublicDependencyModuleNames, which could look like this:

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

more ▼

answered Apr 29 '17 at 11:32 AM

avatar image

Wojtt
11 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question