Health Ticks (League of Legends style)

Here’s a link to the thread that I have going at the moment on the forums: Health Bar Ticks (League Style) and hud? - Blueprint - Unreal Engine Forums

I’m just banging my head against the wall at the moment D:

Assuming that, for whatever reason, you can’t view the link the tl;dr is as follows:

I want to draw a health bar over an NPC which is rendered in the environment using widgets. Got it done already using Tesla’s video tutorials. BUT I also want to add health ticks (fancy speak for drawing rectangles ruler-style to indicate how much health is within the health bar) but don’t know how. I’ve done this in GameMaker but in UE4 I don’t seem to be able to draw rectangles on the health bar in the widget designer.

Hey,

i just added a ruler texture to the healthbar (appended it x number of times where x is the maxhealth divided by 10). Then lerp the multiplyed alpha with your healthbar material.

Ignore the v-tiling (not needed for your case).

Result:

Best regards,
M

Edit: You can set the UTiling (number of strokes) with setMaterialParameter when the unit’s healthbar is created.