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

Hey :slight_smile:

GetHelloWorld has to derive at least from UObject to use UClass.
If should be an Actor (An Actual “Being” in the Scene) it has to derive from AActor

so adding:

: public UObject //or.. :public AActor

after GetHelloWorld should do the trick.

BUT:
If it derives from UObject it has to have the prefix U (UGetHelloWorld)
From AActor it has to have the prefic A (AGetHelloWorld)

Greetings