Hey guys,
Imagine you have a list of targets/enemies, with their positions, health, etc. I'm trying to make an overlay that can display that data over the enemy in the world, as well as highlighting them.
(Imagine a more modern version of this).

I could create a 'target' widget, with inputs for any relevant data about the target in question, and then project/deproject as needed (how is this supported re. the viewport?). These would need to be constructed for each target and destroyed as necessary. They would also need to be updated and moved.
I understand most of this conceptually, but I have to wonder if this is a favourable approach? Has anyone else created similar UI elements and has a better method?
Thanks.
Imagine you have a list of targets/enemies, with their positions, health, etc. I'm trying to make an overlay that can display that data over the enemy in the world, as well as highlighting them.
(Imagine a more modern version of this).
I could create a 'target' widget, with inputs for any relevant data about the target in question, and then project/deproject as needed (how is this supported re. the viewport?). These would need to be constructed for each target and destroyed as necessary. They would also need to be updated and moved.
I understand most of this conceptually, but I have to wonder if this is a favourable approach? Has anyone else created similar UI elements and has a better method?
Thanks.
Comment