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: member access into incomplete type 'ULocalPlayer'

Hey everyone, I'm getting an error while packing a project to HTML5. Apparently only if I do to HTML5 since on VisualStudio its compiles well, Although I receive the error highlight with the same message.

Would anyone be able to point me in a direction as of how to solve this?

The error message I get while compiling is:

Unreal Projects/topDownCamera/Source/topDownCamera/topDownCameraPlayerController.cpp:169:29: error: member access into incomplete type 'ULocalPlayer' UATHelper: Empacotamento (HTML5):
Cast(Player)->ViewportClient->Viewport->SetMouse(mouseLockPositionX, mouseLockPositionY); UATHelper:

The corresponding part in the .ccp file :

 #include "topDownCameraPlayerController.h"
 #include "AI/Navigation/NavigationSystem.h"
 #include "Runtime/Engine/Classes/Components/DecalComponent.h"
 #include "Runtime/Engine/Public/SceneView.h"
 #include "HeadMountedDisplayFunctionLibrary.h"
 #include "topDownCameraCharacter.h"
 #include "Engine/World.h"
 void AtopDownCameraPlayerController::OnMouseHorizontal(float axisValue)
     if (lookAroundEnabled)
         APawn* const Pawn = GetPawn();
         Cast<ULocalPlayer>(Player)->ViewportClient->Viewport->SetMouse(mouseLockPositionX, mouseLockPositionY);

Product Version: UE 4.19
more ▼

asked May 25 '18 at 12:49 PM in C++ Programming

avatar image

3 1 1 4

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

1 answer: sort voted first
 #include "Runtime/Engine/Classes/Engine/LocalPlayer.h"

Unless you included it already, this might help. You class doesn't know what a ULocalPlayer is, and how to cast to it, without including it first.

more ▼

answered May 25 '18 at 01:12 PM

avatar image

166 4 8 6

(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