Execute function from another blueprint when i click on a widget button

Hello,

I have a widget button and I want to execute a function from another blueprint but it doesn’t work, the cast fail.

I think i’m misunderstanding something but what…

Thanks for your help i’m going crazy.

Make sure your ghost building reference is not null. Also, you can try calling the function from the reference without casting.

Indeed my reference is not valid in the MainHUD.

So i set it in my GhostBuilding_BP

But it’s not working with my MainHUD, the reference is not valid.

Thanks for your help, i’m new with UE4.