How to spawn a custom blueprint pawn from c++

Problem solved with:

ShipClass = LoadObject<UBlueprint>(nullptr, TEXT("/Game/Blueprints/ProjectName/Ship/BP_Vanquisher.BP_Vanquisher"))->GeneratedClass;

in the switch to load asset dynamically :wink: