How to update UI text at runtime in Unreal Engine - UE Game Dev Tutorial

preview_player
Показать описание
Update your score, your lives, images without crushing your frame rate in Unreal Engine. In this sub-5 minute tutorial you will see how to use the 'is variable flag' on the elements in a UI Widget to create dynamically updated UI. We will look at adding custom events to the UI Widget Event Graph, where the is variable flag is on the Design Tab and how you can link everything from your player pawn blueprint (or any other bp you might want really) with events and Blueprint references.

Рекомендации по теме
Комментарии
Автор

I'm a complete begginer to game dev, and I was trying to make a debug hud to make my life easier. Thanks you your tutorial, I'm more close to the result I'm looking for!

Thanks for the tutorial and awesome teaching!

thecapivaralover
Автор

Thank you for taking the time to creating this tutorial! 🙏

Soul-gfvv
Автор

Would you want to create event dispatchers on the character for important events such as health and lives being changed? The UI could bind to those events, and the character wouldn't be so tied to the UI. No UI reference would even be needed.

rojo
Автор

It seems you had the text aligned to the right of the screen. How do you use set text so it doesn't override this? I've been having issues with this in my own project

squidee
Автор

great video. What would you do if you want to access the widget not from the class it is created in?

Stefan_Heinrich
Автор

Can you make a new project and get the distance between toy and a cube or whatever shape with a simple widget that has text to show the distance? I can get the distance can print it on the screen but no matter what the UI will not update.

jlawson
Автор

iv watch litrally about 100 videos including this one and none have been able to help me. no matter what i do, weather it be a interface or a simple bind or custom event my text cariable on my hud will not update, loosing hope. i feel like things that should be simple are just to complex. i open my actor Blueprint (whicj in this case is my day cycle) which has a output that has been set, i open my widget ensure its all set to variables and weather i make a event to call or send it a interface message nothing works

benellis
Автор

I'm trying to do this with text in a text box, it doesn't seem to want to update to the new text

nicholaspoling
Автор

"first, you're going to need this widget, which I'mm not going to cover hahahaha

CrudelyMade
visit shbcf.ru