I do know that in Unity, it’s very simple. I think the same can be done in Godot since you would probably create a UI in world space instead of screen space. That would enable the UI placement to be a 3D position somewhere in the world.
In this case, if the goal was to put text boxes above the character, it’s probably best to get each character’s position and put it above their heads.