Best way to implement hud indicator of off screen object

I want to create an arrow that indicates the position of an off screen object. I want this arrow to be orthographically projected, thus always in view of the camera. I want to change it’s position and hopefully rotation dynamically. Ideally I would like to implement this in C++ rather than blueprints, due to my experience in the former.