Settting the HUD class using FClassFinder in c++

I’ve created a C++ class using the Wizard Add code, and Unreal has created this code:

class SIDESCROLLER_API APorcaBrutaHUD : public AHUD

I’ve extended the DrawHud, and assigned this class in the gameMode constructor .

All Ok.

But then i’ve created a Blueprint from this class (APorcaBrutaHUD), and added a variable.

Then in GameMode i need to use the blueprint class, but there is no way that Unreal find it!!!

I’ve tried:
static ConstructorHelpers::FClassFinder TheHUDOb(TEXT("/Game/Blueprints/_myHUD"));

And:
static ConstructorHelpers::FClassFinder TheHUDOb(TEXT(“Class’/Game/Blueprints/BP_myHUD.BP_myHUD_C’”));

But always returns NULL… :frowning:

How can i get the class from the Blueprint to assign my own HUD system…?
Thanks

Ok, this works!!!

static ConstructorHelpers::FClassFinder<AHUD> TheHUDOb(TEXT("/Game/Blueprints/myHUD"));

look at the template...MUST BE AHUD!!