Overloaded Member Function Note Found (Compile Error in .gen File)

Error

Error	C2511	'void UPS_DFS_UI_PlayerHUD::TriggerTooltip_String(const FString &,bool,bool,FSH_RTT_TooltipSettings)': overloaded member function not found in 'UPS_DFS_UI_PlayerHUD' E:\PS_Projects\Deforestation\Intermediate\Build\Win64\UnrealEditor\Inc\Deforestation\UHT\PS_DFS_UI_PlayerHUD.gen.cpp	

Cause

The compiler has added “const” and &” to one of the input paramaters in the function in the .gen file:

void UPS_DFS_UI_PlayerHUD::TriggerTooltip_String(const FString& Tooltip, bool bPrintAlways, bool bSavetoHistory, FSH_RTT_TooltipSettings TooltipSettings) {}

Fix

Add the “const” and &” to the definition in the main class’s code:

UFUNCTION(BlueprintCallable, BlueprintImplementableEvent, Category = "Tooltips", meta = (DisplayName = "Trigger Tooltip (String)"))
	void TriggerTooltip_String(const FString& Tooltip, bool bPrintAlways = false, bool bSavetoHistory = true, FSH_RTT_TooltipSettings TooltipSettings = FSH_RTT_TooltipSettings());

Last updated