So I’ve been playing around with the FPS tutorial but I’ve gotten stuck. As far as I can tell the blueprint containing my character is never loaded and instead it reverts to the default FPSCharacter.h, meaning the mesh never gets loaded into the scene. What gives? I’ve scrapped the project and reworked it from scratch twice but this does not solve the issue.
Here’s the code from the FPSGameMode constructor:
//Use Blueprint character
static ConstructorHelpers::FObjectFinder<UBlueprint> PlayerPawnObject(TEXT("Blueprint'/Game/Blueprints/BP_FPSCharacter.BP_FPSCharacter'"));
if (PlayerPawnObject.Object != NULL)
{
DefaultPawnClass = (UClass*)PlayerPawnObject.Object->GeneratedClass;
}