[UE] mouse click compile error, unresolvable external symbol FKey

When the Actor class overrides the mouse click method: virtual void NotifyActorOnClicked(FKey ButtonPressed = EKeys::LeftMouseButton) override;

After compiling, an error will be reported that the external symbol "__declspec(dllimport) public: __cdecl FKey::~FKey(void)" (_ imp ??1FKey@@QEAA@XZ) cannot be resolved, and the function "public: virtual void __cdecl AMeshChangeController::NotifyActorOnClicked (struct FKey)”

You need to add "InputCore" to the PublicDependencyModuleNames of the Build.cs file to pass the compilation
insert image description here

Guess you like

Origin blog.csdn.net/boyZhenGui/article/details/131919677