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();
Pawn->AddControllerYawInput(axisValue);
Cast<ULocalPlayer>(Player)->ViewportClient->Viewport->SetMouse(mouseLockPositionX, mouseLockPositionY);
}
}