Loading a GeometryScripting Blueprint in C++ results in an exception

I have a GeometryScripting Blueprint called BP_HexProcMesh that I am attempting to load in the constructor of a C++ class and it’s causing the Editor to throw an exception during startup.

static ConstructorHelpers::FObjectFinder<UBlueprint> bpHexChunk(TEXT("Blueprint'/Game/Blueprints/BP_HexProcMesh.BP_HexProcMesh'"));

I see in the in the logs:

VerifyImport: Failed to find script package for import object 'Package /Script/GeometryScriptingEditor'

Followed by 25 lines of the following:

CreateExport: Failed to load Parent for BlueprintGeneratedClass /Game/Blueprints/BP_HexProcMesh.BP_HexProcMesh_C

Interestingly though I put a debug log line in to test whether the Blueprint has loaded .Succeeded() is true (and also prints to log 3 times).

Is this something to do with GeometryScripting being a plugin and it not being available/ready in C++ constructors (which is the only place you can use FObjectFinder apparently)?

Is there a way to get the GeometryScripting Blueprint to load or will I need to code the Blueprint functionality as a C++ class?

Cheers in advance :slight_smile: