I use following code to init a blueprint
static ConstructorHelpers::FObjectFinder<UBlueprint> ItemBlueprint(TEXT("Blueprint'/Game/UMG/BattleGameHUDBp.BattleGameHUDBp'"));
if (ItemBlueprint.Object)
{
BattleGameHUDBp = (UClass*)ItemBlueprint.Object->GeneratedClass;
}
but there is a error in following picture. I am sure it can work in 4.2.1v