Packaged Game doesn't load blueprints

DavisEllwood
Tue, 27 Jan 2015 08:17:31 +0000
Blueprint

When I Package and run the game or if I launch from editor my blueprints don’t load into the game.

I load a blueprint with

static ConstructorHelpers::FObjectFinder<UBlueprint> M16A1Ob(TEXT("Blueprint'/Game/Blueprints/Guns/BP'"));
	if (M16A1Ob.Object)
		GunBP = (UClass*)M16A1Ob.Object->GeneratedClass;
    else
        if(GEngine)
            GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Blue, TEXT("Error MSG"));

That works fine In the editor but when I package the game it finds M16A1Ob because the else statement doesn’t run
but the GunBP doesn’t show up inside the actual game and none of it’s constructor code runs.

5 posts - 1 participant