Slightly different approach, as I’ve already got prefabs for this from another course. I’m drawing the health bars on the UI Canvas as Slider objects, with a world to screen transform to move them to the screen position of the UI Socket.
Further refinements are to make the text area easy to toggle on or off, but I left it in as I was thinking of using it as a kind-of Gizmo to show AI state at some future stage.