Boilerplate UObject in Unreal Engine 5 C++



// MyObject.h file

#pragma once

#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "MyObject.generated.h"


UCLASS()
class TESTING_API UMyObject : public UObject
{
	GENERATED_BODY()
	
};
// MyObject.cpp file

#include "MyObject.h"