My c++ code should work, but UCLASS and class is throwing errors that can't be fixed

Matthew BpBuds
Sun, 17 Jul 2016 14:47:37 +0000
C++

I get the error: “This declaration has no storage class or type specifier” in regards to the word UCLASS, and “class” returns “Expected a ;” I have retried this at least 10 times, to NO avail. What is wrong?

UCLASS(Blueprintable)
class CPPCUSTOMCHARTEST_API GetHelloWorld
{
	GENERATED_BODY()
public:
	UFUNCTION(BlueprintPure, meta = (DisplayName = "Print Hello", Keywords = "Hello World"), Category = Game)
		static FText returnText();
	GetHelloWorld();
};

20 posts - 1 participant