Download

Get bounds of object in screen-space.

Does anybody know of a system I can use to return the size of an object in screen-space? Essentially imagine that I already have a system in place that creates a surrounding ‘targeting box’ in the HUD based on a World-Space position, how can I then return the size of the object in screen-space as well, to scale/size the reticle?

The only way I can think of doing this is setting a custom ‘BoundsScale’ variable per-actor, and then scaling up the reticle for that object based on it’s distance from the player controller’s camera. Is there a better/more efficient/foolproof way?

Bonus points for working out how to generate arrows on the edge of the hud to indicate an objects position too!

I’ve also come up against this and found no real workaround.