UFUNCTION Error: Function return type: Missing variable type

Hi guys on compile i keep getting this error.

Info Compiling game modules for hot reload
Info Parsing headers for TutorialProjectEditor
Info Running UnrealHeaderTool “C:\Users*\Documents\Unreal Projects\TutorialProject\TutorialProject.uproject" "C:\Users*\Documents\Unreal Projects\TutorialProject\Intermediate\Build\Win64\TutorialProjectEditor\Development\TutorialProjectEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Error C:/Users/*/Documents/Unreal Projects/TutorialProject/Source/TutorialProject/InteractableActor.h(18) : Error: Function return type: Missing variable type
Info UnrealHeaderTool failed for target ‘TutorialProjectEditor’ (platform: Win64, module info: C:\Users*
\Documents\Unreal Projects\TutorialProject\Intermediate\Build\Win64\TutorialProjectEditor\Development\TutorialProjectEditor.uhtmanifest).

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Interaction);
void OnInteract(AActor* Caller);

http://pastebin.com/aDe2kwHw here is paste bin for look in to cpp and h

Help would be much appreciated, Thank you :).

1 Like

Hi Jerelal,

You have a ; after the UFUNCTION declaration which shouldn’t be there. Please remove it and compile.

Cheers,

7 Likes

Thank you very much :).