How to cast from a blueprint

Hello
So i want to make an ingame pause menu and have to change the information in a diffremt blueprint if the menu is opened, thus you can’t open the menu if it is opened. Yet i don’t know how i can change that information in another blueprint.

Usually menus referenced inside main HUD class, and UI states also managed from there.

So you can call GetPlayerController->GetHUD->Cast to your HUD class from every widget.

i tried it like this and created the Hud hudtest but it always says cast failed

Did you set HudTest into Game Mode class?

180144-unbenannt.png

No, I mean you should have GameMode class, which is main class in your project. And there you setup other main classes like player controller, hud and so on.

190142-2017-06-07_2120.jpg

Oh thanks .Im new to unreal and didn’t know that but it’s still says cast failed

Ok forget it.It works. Thank you very much.