x

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"

Why Does ue4 remove a 0?

Maybe there is a fancy math thing for this but why does unreal 4 umg display my float at 0.0 as 0 on screen when playing? :O and is there a way for a fix on this?

Product Version: UE 4.10
Tags:
more ▼

asked Apr 22 '16 at 07:44 PM in Blueprint Scripting

avatar image

Lathost
5 7 11 14

avatar image Dev Ryan Apr 23 '16 at 01:18 AM

Hey there Lathost!

I have been playing with the UMG for a while now and to my understanding is since the 0.0 is the same as 0, it displays it naturally as 0. Is it displaying the decimal once the number is then increased to any amount while playing? Say maybe you have a damage amount to be set at 0.0 in the UMG blueprint, but once the damage of say .3 is taken, does the number while playing show 0.3? It may be showing 0 until the number is changed to be larger than that even if it is only by .1 at a time. Hopefully this helps in some way.

  • Ryan

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

1 answer: sort voted first

"0.0" will be displayed as 0. That makes sense if you think about it. It's a float. It's not 0.000 or 0.00000000000000000000000000000. If you want to display it as 0.0 you can implement something like this inside your UMG Graph:alt text

In this graph if the float value is 0.0 it will convert the float into string, then name. It will force the display as "0.0" instead of "0".

1.png (112.5 kB)
more ▼

answered Apr 24 '16 at 01:41 PM

avatar image

Nick Jackson
492 17 14 107

(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