Problem solved with:
ShipClass = LoadObject<UBlueprint>(nullptr, TEXT("/Game/Blueprints/ProjectName/Ship/BP_Vanquisher.BP_Vanquisher"))->GeneratedClass;
in the switch to load asset dynamically
Problem solved with:
ShipClass = LoadObject<UBlueprint>(nullptr, TEXT("/Game/Blueprints/ProjectName/Ship/BP_Vanquisher.BP_Vanquisher"))->GeneratedClass;
in the switch to load asset dynamically