UCLASS and GENERATE_BODY MACROS
this macro use for UObject managing system.
Unreal’s UObject Managing system provide some functions like a garbage collection, serialization, automatic property initailization.
Header file format
Unreal C++ class have to write correct format.
eg)
#include 'Object.h'
#include 'MyObject.generated.h'
/**
*
*/
UCLASS()
class MYPROJECT_API UMyObject : public UObject
{
GENERATED_BODY()
};
Constructor and begin play
I recognize interesting variable. If “bWantsBeginPlay” variable set true, unreal engine call “BeginPlay” Function.