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"

Widget Progress Bar Issue

I'm setting the percent health on AI actors by passing their health percentage to their widget progress bar. I'm getting a weird issue with fill. I'm following the same logic I've seen in other, working, implementations of this sort of thing, but because this is my first time implementing something like this, I might be doing something wrong.

Here are pictures of all of the relevant views and screenshots of the specific issue.

If any additional information is needed, I would be happy to provide it.

Note: Unlike similar questions the issue is not due to out of range percentages. The print string statement on the screen shots shows that the widget is being given appropriate values.

Blueprint Component view Widget view Error highlighted Another view

Product Version: Not Selected
Tags:
botupdate.png (99.7 kB)
component.png (766.9 kB)
widgeteditor.png (131.9 kB)
more ▼

asked May 03 '15 at 10:46 PM in Bug Reports

avatar image

TimH
10 2 6 8

avatar image Rudy Q ♦♦ STAFF May 04 '15 at 05:53 PM

Hello TimH,

I was unable to reproduce this issue that you described above with the information provided. However, I was able to achieve what I expect is your end goal. I have provided an example of this below. I was able to get the onscreen UI to update at the same frequency as that of the 3D widget. I hope that this helps.

Example:

I set up a custom event inside of the widget that I wanted to use. In this example it subtracts a set amount whenever the event is called.

alt text

This is my 3D widget Actor that is placed in the level. I have used the "Get User widget object" node to update the 3D widget Actor and I have used the Get all Widgets of Class Node with a for each loop update the widget that is in 2D screen space.

alt text

Make it a great day

avatar image TimH May 04 '15 at 06:52 PM

This doesn't solve my issue and isn't what I'm attempting to implement. Each of the AI actors should have individual health meters. I can provide more information for replication sake, but marking a bug report as resolved without further attempts to replicate it represents a gross oversight on your part.

avatar image TimH May 04 '15 at 06:56 PM

Look at the print statement values, these values should be passed to the widget with the set percent node. The print statements wouldn't appear if the cast to BotHealthBlueprint failed. Since the print statements appear, set percent should be a valid option. Setting values of 0.6, 0.8, 0.2 should fill the bar accordingly, but this is not happening. Hence the bug report.

avatar image Rudy Q ♦♦ STAFF May 04 '15 at 07:31 PM

Hello TimH,

I see that my previous answer was incorrect. I have a few question for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. What version of the engine are you using?

  2. Can you reproduce this issue in a clean project?

  3. If so, could you provide a detailed list of steps to reproduce this issue on our end?

  4. Could you submit new screen shots with legible read outs of your print strings?

  5. Could you elaborate on what exactly what the issue is as well as to what the expected result would be?

  6. When you say that your AI should have individual health bars, could you clarify what you are seeing and how it is inverse to the expected result (Example are they all updating at the same time or is only one instance of your AI updating)?

  7. Could you specify the blueprint that was used in your original post (Widget or AI bot or other)?

  8. After specifying the blueprint class, could you then provide a screen shot of the blueprint that is call the custom event that is shown in the image provided?

avatar image TimH May 07 '15 at 06:47 PM

I'm using version 4.7.6, but the issue also occurs in 4.8.0 (preview).

I was able to reproduce it, here's a link to the project. The values aren't updating correctly On hit, the pawn should receive damage which should update the widget. The percentage bar isn't updating correctly, as you can see in the screenshot above.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hello TimH,

After looking over you project I was able to find that your Widgets are being clipped off because the widget component was incorrectly sized. The calculations and updates are working correctly. If you change the size of your widget component to 600 along the X axis you will see what I mean. I have provided a picture as a reference. I hope this helps.

Working correctly after resizing:

alt text

Correction that was made:

alt text

Make it a great day

more ▼

answered May 07 '15 at 07:29 PM

avatar image

Rudy Q ♦♦ STAFF
47.5k 545 132 522

(comments are locked)
10|2000 characters needed characters left
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