Does it have any influence, if I use public: after GENERATED_UCLASS_BODY()?
AFAIK with GENERATED_UCLASS_BODY() all my variables are public by default, but doxygen doesn’t know this.
So I still write public: after it,
That’s totally fine. I do it, too!
As you already noticed, the macro for GENERATED_UCLASS_BODY contains a ‘public:’. If you don’t want the following members to be public, you can put ‘private:’ or ‘protected:’ as well. I usually use the following style in all my code:
class UMyClass
{
GENERATED_UCLASS_BODY()
/** My property. */
UPROPERTY()
bool MyProperty;
// ... other public properties here
public:
// public functions here
protected:
// implementation functions here
private:
// delegate callbacks and other internal functions here
private:
// non-property fields here
};
ok great! , i’ll also put one public: above my UPROPERTY() declarations.
otherwise doxygen thinks it’s private