Hey -
I am developing using Xcode, and everything is working with the UE editor. But I noticed that if I add the UFUNCTION() or UPROPERTY() it makes my build to fail.
If I just comment the UFUNCTION lines, the code works perfectly.
UCLASS()
class AFPSCharacter : public ACharacter
{
GENERATED_UCLASS_BODY()
virtual void BeginPlay() OVERRIDE;
protected:
virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) OVERRIDE;
UFUNCTION();
void MoveForward(float Val);
UFUNCTION();
void MoveRight(float Val);
};
The error that I get is this:
Parsing headers for FPSProjectEditor
/Volumes/HD/Development/Unreal/Labs/FPSProject/Source/FPSProject/FPSCharacter.h(21) : Error: In FPSCharacter: Missing function name
Error: Failed to generate code for FPSProjectEditor - error code: 4
ERROR: UnrealHeaderTool failed for target 'FPSProjectEditor' (platform: Mac, module info: /Volumes/HD/Development/Unreal/Labs/FPSProject/Intermediate/Build/Mac/FPSProjectEditor/DebugGame/UnrealHeaderTool.manifest).
Command /Users/Shared/UnrealEngine/4.1/Engine/Build/BatchFiles/Mac/RocketBuild.sh failed with exit code 1
Does anyone know how to solve this issue? I looked all over the Answerhub questions but couldn’t find an answer to it.
Thanks!
Sandro