How to create a UI for hunger system with UMG?
I Wanna create a UI for my hunger system with UMG. I Have a hunger variable that drops by 1% every 10 second from 100% to 0%. I Wanna build a simple UI for my hunger system that tells me the percentage of my hunger variable on the screen (For example: 45%) and i want it to look like this:
PLEASE if there is anyone in the staff or anybody that can tell me how can i acheive that, i'd appreciate it alot. thank you.
asked Aug 05 '14 at 10:37 PM in Using UE4
You can start with a basic hunger system in your Character Blueprint. There is a good example of this made by Tesla:
Then I was able to use a simple Text Block in my UMG Widget. I bound a Text binding. Then in the event graph, I made a Get Player Character, then dragged from that to "Cast To" the character blueprint with the hunger system. From the Cast, you can get your hunger variable. Here is an example using Health instead:
Let me know if you have any questions.
answered Aug 11 '14 at 09:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here