Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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: alt text

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.

Product Version: Not Selected
more ▼

asked Aug 05 '14 at 10:37 PM in Using UE4

avatar image

222 48 62 79

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


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:

alt text

Let me know if you have any questions.

umg_hunger.jpg (66.8 kB)
more ▼

answered Aug 11 '14 at 09:53 PM

avatar image gotgrassct Aug 17 '14 at 03:05 AM

Thank u it works magically. How cann i do this with progress bar?

avatar image S0T0 Aug 17 '14 at 05:54 AM


That has a basic example of setting up a dynamic image with the percentage of health/ammo/etc with the binding.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question