Hey
First try to write a “override” behind NativeOnMouseButtonDown(…)
I don’t think that’s the problem but it’s cooler
Second:
I think you have to include “UMG” “Slate” “SlateCore” to your (ProjectName).Build.cs
This is mine for example:
using UnrealBuildTool;
public class ProjectName: ModuleRules
{
public ProjectName(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Paper2D", "UMG", "XmlParser" });
// Uncomment if you are using Slate UI
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "HeadMountedDisplay", "SteamVR" });
}
}
Just uncomment the Private Section and you should do fine.
And add UMG (Don’t know if needed) to PublicDependencies
Greetings
EDIT:
Ok I just checked.
You need “UMG” “Slate” and “SlateCore”