UMG and C++

That’s not safe to do in a shipping build, UBlueprints and UWidgetBlueprints are an editor only time concept, it wont work in a cooked game. The recommended approach is to expose your variables like you have in C++, but make the asset connections in blueprint derivatives. It will be much easier to setup and maintain the references correctly.