How to display an integer within a widget bp

My game has a wave based system and when the character dies I want the wave number (integer variable) to be displayed on the death screen which is a widget. I’ve been able to display the number on the HUD blueprint through the draw text option however i can’t manage to find a way to display it on with widget. I’m a beginner with unreal, only started this year any help would be appreciated.

Well, if you just begin to work with Unreal, you should take a look at these video tutorial: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

There should be at least 2 tutorials that directly teaching you all the basic stuff you need to know about UMG.

Also, about your problem, you need to create a widget blueprint class, fill that blueprint with necessary functions, such as update the number of wave, display/ hide it from the user, … Then inside another blueprint, usually HUD blueprint/ player controller blueprint, create an instance of that widget blueprint, assign it to a variable, then reference that variable and call its function whenever you need.

I figured it out. The variable I was trying to get in the Widget was from a HUD BP so i instead changed the hud to another widget and moved the variable that was in the HUD to an external bp which allowed me to get the variable through get all actors from class in both Widgets. Thanks for the help.