What I’ve got is:
UCLASS()
class MY_UNREAL_PROJECT_API MainLoop
{
GENERATED_BODY();
public:
UFUNCTION(BlueprintCallable)
void mainLoop();
}
And on compiling I get either (depending on which macros are put in):
- MainLoop is not a class or namespace name
- Class MainLoop must inherit from UObject