How to make a UI widget to display the player's velocity?

Hi I’m making a game where you are a Cube that is constantly moving forward. And if you move too slow you die.

I would like to make a UI widget to …

  1. display the player’s velocity
  2. show the minimum velocity to die
  3. too be seen on the player’s back
  1. That’s simple enough. Just use the widget owner pawn’s velocity. Do you want a number, a bar, a dial?
  2. Same thing, just get a reference to whatever object holds that value and display it in the desired way.
  3. Do you want this widget to float behind and above the player, or do you want it to appear like a skin on the player pawn, or something else?

I like a dial and I like it to float behind the player

Tutorial on making different shaped progess widgets for anything like health velocity or whatever:

Once you get that working, add a widget component to the pawn blueprint and set that as your widget.
If you make it world space widget it will turn with the player so will not be properly seen by other human players unless they are directly behind him. This is not a problem for single player if you attach it to the camera component.

If it needs to always face all cameras that see it, then you have two options:

  1. Set it be be a screen space widget component, but that makes it visible through walls.
  2. Or change your widget material to always render toward whatever camera sees it regardless of its actual rotation.