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"

Accessing Float From Blueprint and adding it to widget text

I want to have a percentage next to the pitcher to show the percentage of the thirst I have set up the floats in my character and make the widget and added the bind on the text and in blueprint converted float to text but it doesnt seem to work. im trying to achieve a image with the percent next to it and get that percent from the my character.

alt text

alt text

alt text

Product Version: UE 4.11 Preview
mycharacter.png (461.8 kB)
thirst.png (327.4 kB)
widget.png (335.3 kB)
more ▼

asked Dec 26 '15 at 11:01 AM in Blueprint Scripting

avatar image

20 7 9 13

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

1 answer: sort voted first

The variable "MyCharacter" in your widget is private - do you set this variable anywhere? Because if not, than you'd always be reading the thirst level of a non-existing character, which will result in 0.

Also I would recommend you use a float value of 0 .. 1 instead of 0 .. 100. This is easier to do math with, and there is a built-in function "AsPercent", which you can use to convert a float percentage value to a number (e.g. 0.35 -> 35%).

more ▼

answered Dec 26 '15 at 12:15 PM

avatar image

412 24 19 34

(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