UCLASS must not be inside preprocessor blocks, except for WITH_EDITORONLY_DATA

How do I solve that error?

Line 14… and 13.

Get rid of line 13 (and the closing endif assuming it exists).

I never knew you can’t put an entire class inside a preprocessor directive but it sounds like a bad idea anyway.