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"

[4.17.2] UHeadMountedDisplayFunctionLibrary::ResetOrientationAndPosition() Error

Hi hi I was created a blank c++ project (TestProject) and created other c++ template project of thirdperson (TempProject)

In TestProject, I create a character c++ (MyCharacter) In MyCharacter class, I was following the TempProject, the TemplateCharacter class however the error occur alt text

the problem of the error is the line of code


may i know why and how to solve it ? thanks :D

Product Version: UE 4.17
inkedcapture-li.jpg (757.7 kB)
more ▼

asked Oct 16 '17 at 09:50 AM in C++ Programming

avatar image

Ka Wai
1 1 2 2

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

2 answers: sort voted first

Hi Ka Wai, Try adding a string "HeadMountedDisplay" to the PublicDependencyModuleNames variable in your [ProjectName].Build.cs file (probably FYP_Game_Development.Build.cs file).

Somewhat like this:

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

Hope this helps.

more ▼

answered Oct 27 '17 at 08:10 AM

avatar image

51 4 5

avatar image JonathanLambert May 25 '18 at 03:29 PM

This was the problem for me. Thanks!

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

Looks like your code doesn't know what the function is. You may need to include the header for the code to be found. The documentation for the function can be found here: https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Kismet/UHeadMountedDisplayFunctionLibra-/ResetOrientation-/index.html.

At the bottom, it shows what module and header will be needed - "#include Runtime/Engine/Classes/Kismet/HeadMountedDisplayFunctionLibrary.h"

more ▼

answered Oct 16 '17 at 11:16 AM

avatar image

1.9k 53 40 200

avatar image Ka Wai Oct 17 '17 at 04:53 PM

Thanks is a mean need to add the whole path ?? cause the default is: #include "HeadMountedDisplayFunctionLibrary.h" however error, I have been try #include "Kismet/HeadMountedDisplayFunctionLibrary.h" but is failed as well.... thanks:D, i try

(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