I am building UT from scratch with UE4.22. That means it includes generating appropriate changes in the code. In my journey, I encounter several warnings and errors that UBT/UHT spit out while parsing the code. One issue which poses a dilemma is the error of type
Override of UFUNCTION in parent class "SomeClass" cannot have a UFUNCTION() declaration above it; it will use the same parameters as the original declaration.
Epic’s default advise can be easily accessed in HeaderParser.cpp which says
Native function overrides should be done in CPP text, not in a UFUNCTION() declaration (you can't change flags, and it'd otherwise be a burden to keep them identical)
which kind of makes sense but when you actually implement this methodology, which is (I think) removing the keyword UFUNCTION in the .h declaration of the function and writing in the .cpp, the function no longer remains UFUNCTION().
Hence I was wondering what is the right way to declare the overriding UFUNCTION().