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

### Error <a href="#error" id="error"></a>

```
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 <a href="#cause" id="cause"></a>

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

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

### Fix <a href="#fix" id="fix"></a>

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

```cpp
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());
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oserosuite.com/technical-notes/unreal-engine-notes/compile-errors/overloaded-member-function-note-found-compile-error-in-.gen-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
