Which should I use UUserDefinedStruct or normal USTRUCT

When we want to define struct in C++, which way shold we use?

  1. Create C++ class UUserDefinedStruct inherited
  2. Create header file manually and define structs as many as we want(Not define class. Struct only.)

Second.
Child of UUserDefinedStruct is going to be UCLASS.

UCLASS()
class CONTENTEXAMPLESCPP_API UMyUserDefinedStruct : public UUserDefinedStruct
{
	GENERATED_BODY()
	
};

If you want to create a USTRUCT try this:

USTRUCT()
struct FMyStruct
{
	GENERATED_BODY()
	
};

(Legacy wiki post: https://www.ue4community.wiki/Legacy/How_To_Make_UStruct)