I’ve just started learning to use Unreal 4. I have some experience in Unity, and a fair amount in C++. I just tried to set up some math functions to be called from a blueprint for a material I’m testing, and I’m getting an error when trying to compile the header file:
#pragma once
UCLASS()
class PLAYSPACE_API UMathExtension :
public UBlueprintFunctionLibrary
{
public:
GENERATED_UCLASS_BODY()
UFUNCTION(BlueprintPure, Category = "Math")
static float FSmoothStep(float a, float b, float x);
UFUNCTION(BlueprintPure, Category = "Math")
static FVector VSmoothStep(FVector a, FVector b, FVector x);
};
The only error I get is the OtherCompilationError(2), and an intellisense warning saying that it expected a ‘)’ on the line with GENERATED_UCLASS_BODY()
Thoughts?