rayDawg
(rayDawg)
May 29, 2014, 7:34pm
10
You can do that with Canvas and the HUD in a Blueprint with something like this:
It just gets the player Pawn’s location and offsets it by some vector (HUDOffset variable in the image) which is rotated by the Pawn’s rotation so the offset is always local. Then it projects that into screen-space and uses that position to draw using the Canvas.
It’s just a 2D overlay, but it will appear to be in the world. 4.2 has a new Canvas Render Target feature that can draw UI to a texture that can be used in a Material and applied to a surface in the world as well.
It’s close to what I was going for, so I’ll start tinkering around some more and see if I can get it to stay facing the player character’s mesh while the camera moves around. Thank you!