This is my overlapbegins funtion
I want to write code that spawn a 3d widget here.
So I looked at other questions and followed them.
But the 3d widget was not properly spawn.
.h (overlap class)
TSubclassOf<class AJsonWidget> MyWidgetBlueprint;
.cpp
static ConstructorHelpers::FObjectFinder<UBlueprint> WidgetBlueprint(TEXT("Blueprint'/Game/Content/Widget/MyJsonWidget'"));
if (WidgetBlueprint.Object) {
MyWidgetBlueprint = (UClass*)WidgetBlueprint.Object->GeneratedClass;
}