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"

Unreal Engine 4.18 - Adding c++ feature gives me error

I created a new Blueprint project with First Person template, and then I want to add the Third Person c++ feature. However, as soon as I do, it gives me the errors shown below

alt text

alt text

And if I try to build the solution in visual studio, i get these errors

alt text

I have tried both with VS community 2015 and 2017, reinstalled them both as well as unreal engine. I even reinstalled and formatted all my hard drives, including windows. Still the same problem.

Product Version: UE 4.18
failedtocompile.png (153.8 kB)
log.png (104.4 kB)
vsconsole.png (29.2 kB)
more ▼

asked Dec 21 '17 at 07:06 PM in Using UE4

avatar image


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

2 answers: sort voted first

In your [Project-name].Build.cs file, there is a line that reads:

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

Change it so it looks like this:

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

more ▼

answered Dec 21 '17 at 11:57 PM

avatar image

4.4k 32 79 42

avatar image LucianoJacomeli Feb 15 '19 at 05:37 PM

And then will need delete the Blueprint ThirdPersonCharacter, and create a new Blueprint based in you C++ class, add the mesh, Anim_BP and Compile.

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

Hey there, is that ResetOrientationAndPosition the only function from UHeadMountedDisplayFunctionLibrary that you use? If that is the case then you might need to include the module for HeadMountedDisplay in the Build.cs.

more ▼

answered Dec 21 '17 at 07:26 PM

avatar image

6k 162 129 305

(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